Class ErrorMessage
ErrorMessage
Inheritance
Inherited Members
Namespace: Simplic.Datev.Swagger.Model
Assembly: Simplic.Datev.IO.Swagger.dll
Syntax
[DataContract]
public class ErrorMessage : IEquatable<ErrorMessage>, IValidatableObject
Constructors
| Improve this Doc View SourceErrorMessage(String, String, String, String, List<DatevAdditionalMessage>)
Initializes a new instance of the ErrorMessage class.
Declaration
public ErrorMessage(string error = null, string requestId = null, string errorDescription = null, string errorUri = null, List<DatevAdditionalMessage> additionalMessages = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | error | Error code. |
System.String | requestId | ID of the request. |
System.String | errorDescription | Error description. |
System.String | errorUri | URI to further information. |
System.Collections.Generic.List<DatevAdditionalMessage> | additionalMessages | additionalMessages. |
Properties
| Improve this Doc View SourceAdditionalMessages
Gets or Sets AdditionalMessages
Declaration
[DataMember(Name = "additional_messages", EmitDefaultValue = false)]
public List<DatevAdditionalMessage> AdditionalMessages { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<DatevAdditionalMessage> |
Error
Error code
Declaration
[DataMember(Name = "error", EmitDefaultValue = false)]
public string Error { get; set; }
Property Value
Type | Description |
---|---|
System.String | Error code |
ErrorDescription
Error description
Declaration
[DataMember(Name = "error_description", EmitDefaultValue = false)]
public string ErrorDescription { get; set; }
Property Value
Type | Description |
---|---|
System.String | Error description |
ErrorUri
URI to further information
Declaration
[DataMember(Name = "error_uri", EmitDefaultValue = false)]
public string ErrorUri { get; set; }
Property Value
Type | Description |
---|---|
System.String | URI to further information |
RequestId
ID of the request
Declaration
[DataMember(Name = "request_id", EmitDefaultValue = false)]
public string RequestId { get; set; }
Property Value
Type | Description |
---|---|
System.String | ID of the request |
Methods
| Improve this Doc View SourceEquals(ErrorMessage)
Returns true if ErrorMessage instances are equal
Declaration
public bool Equals(ErrorMessage input)
Parameters
Type | Name | Description |
---|---|---|
ErrorMessage | input | Instance of ErrorMessage to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System.Object | input | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Overrides
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
ToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceIValidatableObject.Validate(ValidationContext)
To validate all properties of the instance
Declaration
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.DataAnnotations.ValidationContext | validationContext | Validation context |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> | Validation Result |