Show / Hide Table of Contents

Class ApiException

Error message model.

Inheritance
System.Object
System.Exception
System.SystemException
System.InvalidOperationException
System.Net.WebException
ApiException
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.Communication
Assembly: Klarna.Rest.Core.dll
Syntax
public class ApiException : WebException, ISerializable

Constructors

| Improve this Doc View Source

ApiException(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 Source

ErrorMessage

Gets the API error response model.

Declaration
public ErrorMessage ErrorMessage { get; }
Property Value
Type Description
ErrorMessage
| Improve this Doc View Source

StatusCode

Gets the API response status code.

Declaration
public HttpStatusCode StatusCode { get; }
Property Value
Type Description
System.Net.HttpStatusCode

Implements

System.Runtime.Serialization.ISerializable
  • Improve this Doc
  • View Source
Back to top Copyright (c) 2005-2019 Klarna Bank AB (publ). All rights reserved.