Share via


ErrorDetails Class

Definition

Error contract returned when some exception occurs in Rest API.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.ErrorDetailsTypeConverter))]
public class ErrorDetails : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IErrorDetails
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.ErrorDetailsTypeConverter))>]
type ErrorDetails = class
    interface IErrorDetails
    interface IJsonSerializable
Public Class ErrorDetails
Implements IErrorDetails
Inheritance
ErrorDetails
Attributes
Implements

Constructors

ErrorDetails()

Creates an new ErrorDetails instance.

Properties

AgentErrorCode

Agent error code.

AgentErrorMessage

Error message from the agent.

AgentErrorPossibleCaus

Possible causes for the agent error.

AgentErrorRecommendedAction

Recommended action for the agent error.

Code

Error code.

IsAgentReportedError

Value indicating whether the error originated from a agent or not.

Message

Error message.

PossibleCaus

Possible causes of error.

RecommendedAction

Recommended action to resolve error.

Severity

Error severity.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ErrorDetails.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ErrorDetails.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IErrorDetails.

FromJsonString(String)

Creates a new instance of ErrorDetails, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of ErrorDetails into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to