Class ApiException
Error message model.
Inheritance
System.Object
System.Exception
System.SystemException
System.InvalidOperationException
System.Net.WebException
ApiException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Net.WebException.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Net.WebException.System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Net.WebException.Response
System.Net.WebException.Status
System.Exception.GetBaseException()
System.Exception.GetType()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Klarna.Rest.Core.Commuication
Assembly: Klarna.Rest.Core.dll
Syntax
public class ApiException : WebException, ISerializable
Constructors
| Improve this Doc View SourceApiException(String, HttpStatusCode, ErrorMessage, Exception)
Initializes a new instance of the ApiException class.
Declaration
public ApiException(string message, HttpStatusCode statusCode, ErrorMessage errorMessage, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The text of the error message. |
System.Net.HttpStatusCode | statusCode | The HTTP status code. |
ErrorMessage | errorMessage | The API error message model. |
System.Exception | innerException | The nested exception |
Properties
| Improve this Doc View SourceErrorMessage
Gets the API error response model.
Declaration
public ErrorMessage ErrorMessage { get; }
Property Value
Type | Description |
---|---|
ErrorMessage |
StatusCode
Gets the API response status code.
Declaration
public HttpStatusCode StatusCode { get; }
Property Value
Type | Description |
---|---|
System.Net.HttpStatusCode |
Implements
System.Runtime.Serialization.ISerializable