Class Error
Error details.
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.Monitor.dll
Syntax
public class Error
Constructors
Error()
Initializes a new instance of the Error class.
Declaration
public Error ();
Error(String, String)
Initializes a new instance of the Error class.
Declaration
public Error (string code, string message = null);
Parameters
String
code
Error code identifying the specific error. |
String
message
Error message in the caller's locale. |
Properties
Code
Gets or sets error code identifying the specific error.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="code")]
public string Code { get; set; }
Property Value
String
|
Message
Gets or sets error message in the caller's locale.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="message")]
public string Message { get; set; }
Property Value
String
|
Methods
Validate()
Validate the object.
Declaration
public virtual void Validate ();
Exceptions
ValidationException
Thrown if validation fails |