Class ApiException
API Exception
Inheritance
System.Object
System.Exception
ApiException
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception
Inherited Members
System.Exception.GetBaseException()
System.Exception.ToString()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.Message
System.Exception.Data
System.Exception.InnerException
System.Exception.TargetSite
System.Exception.StackTrace
System.Exception.HelpLink
System.Exception.Source
System.Exception.HResult
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
Namespace: Simplic.Datev.Swagger.Client
Assembly: Simplic.Datev.IO.Swagger.dll
Syntax
public class ApiException : Exception, ISerializable, _Exception
Constructors
| Improve this Doc View SourceApiException()
Initializes a new instance of the ApiException class.
Declaration
public ApiException()
ApiException(Int32, String)
Initializes a new instance of the ApiException class.
Declaration
public ApiException(int errorCode, string message)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | errorCode | HTTP status code. |
System.String | message | Error message. |
ApiException(Int32, String, Object)
Initializes a new instance of the ApiException class.
Declaration
public ApiException(int errorCode, string message, dynamic errorContent = null)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | errorCode | HTTP status code. |
System.String | message | Error message. |
System.Object | errorContent | Error content. |
Properties
| Improve this Doc View SourceErrorCode
Gets or sets the error code (HTTP status code)
Declaration
public int ErrorCode { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The error code (HTTP status code). |
ErrorContent
Gets or sets the error content (body json object)
Declaration
public dynamic ErrorContent { get; }
Property Value
Type | Description |
---|---|
System.Object | The error content (Http response body). |
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception