ServiceError Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
ASR error model.
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202401.ServiceErrorTypeConverter))]
public class ServiceError : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202401.IServiceError
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202401.ServiceErrorTypeConverter))>]
type ServiceError = class
interface IServiceError
interface IJsonSerializable
Public Class ServiceError
Implements IServiceError
- Inheritance
-
ServiceError
- Attributes
- Implements
Constructors
| Name | Description |
|---|---|
| ServiceError() |
Creates an new ServiceError instance. |
Properties
| Name | Description |
|---|---|
| ActivityId |
Activity Id. |
| Code |
Error code. |
| Message |
Error message. |
| PossibleCaus |
Possible causes of error. |
| RecommendedAction |
Recommended action to resolve error. |
Methods
| Name | Description |
|---|---|
| DeserializeFromDictionary(IDictionary) |
Deserializes a IDictionary into an instance of ServiceError. |
| DeserializeFromPSObject(PSObject) |
Deserializes a PSObject into an instance of ServiceError. |
| FromJson(JsonNode) |
Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202401.IServiceError. |
| FromJsonString(String) |
Creates a new instance of ServiceError, deserializing the content from a json string. |
| ToJson(JsonObject, SerializationMode) |
Serializes this instance of ServiceError into a JsonNode. |
| ToJsonString() |
Serializes this instance to a json string. |