Class Error
Class for errors.
Inheritance
System.Object
Error
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Microsoft.Graph.CoreSDK.Exceptions.Error
Assembly: Microsoft.Graph.CoreSDK.dll
Syntax
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
public class Error
Properties
View SourceAdditionalData
Gets or sets the additional data.
Declaration
[JsonExtensionData(ReadData = true)]
public IDictionary<string, object> AdditionalData { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> | The additional data. |
Code
Gets or sets the error code.
Declaration
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "code", Required = Required.Default)]
public string Code { get; set; }
Property Value
Type | Description |
---|---|
System.String | The error code. |
InnerError
Gets or sets the inner error.
Declaration
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "innererror", Required = Required.Default)]
public Error InnerError { get; set; }
Property Value
Type | Description |
---|---|
Error | The inner error. |
Message
Gets or sets the error message.
Declaration
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "message", Required = Required.Default)]
public string Message { get; set; }
Property Value
Type | Description |
---|---|
System.String | The error message. |
ThrowSite
Gets or sets the throw site.
Declaration
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "throwSite", Required = Required.Default)]
public string ThrowSite { get; set; }
Property Value
Type | Description |
---|---|
System.String | The throw site. |
Methods
View SourceToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |
Overrides
System.Object.ToString()