Table of Contents

Class KasApiException

Namespace
KASserver
Assembly
KASserver.Client.dll

Thrown when the KAS API returns a SOAP fault (e.g. kas_session_invalid, email_already_exists, missing_parameter) or when a response cannot be interpreted (non-XML body, unexpected response shape).

public class KasApiException : Exception, ISerializable
Inheritance
KasApiException
Implements
Inherited Members

Constructors

KasApiException(string, Exception, string?, string?)

Initializes a new instance of the KasApiException class wrapping an underlying error.

public KasApiException(string message, Exception innerException, string? faultCode = null, string? action = null)

Parameters

message string
innerException Exception
faultCode string
action string

KasApiException(string, string?, string?)

Initializes a new instance of the KasApiException class.

public KasApiException(string message, string? faultCode = null, string? action = null)

Parameters

message string
faultCode string
action string

Properties

Action

The KAS action that triggered the error, if known.

public string? Action { get; }

Property Value

string

FaultCode

The raw KAS fault string, e.g. email_already_exists. Useful for programmatic handling. May be null if the error did not originate from a SOAP fault.

public string? FaultCode { get; }

Property Value

string