Search Results for

    Show / Hide Table of Contents

    Class ApiException

    API Exception

    Inheritance
    object
    Exception
    ApiException
    Implements
    ISerializable
    Inherited Members
    System.Exception.GetBaseException()
    Exception.GetObjectData(SerializationInfo, StreamingContext)
    Exception.GetType()
    Exception.ToString()
    Exception.Data
    Exception.HelpLink
    System.Exception.HResult
    Exception.InnerException
    Exception.Message
    System.Exception.Source
    System.Exception.StackTrace
    System.Exception.TargetSite
    Exception.SerializeObjectState
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: mailslurp.Client
    Assembly: mailslurp.dll
    Syntax
    public class ApiException : Exception, ISerializable

    Constructors

    View Source

    ApiException()

    Initializes a new instance of the ApiException class.

    Declaration
    public ApiException()
    View Source

    ApiException(int, string, object, Multimap<string, string>)

    Initializes a new instance of the ApiException class.

    Declaration
    public ApiException(int errorCode, string message, object errorContent = null, Multimap<string, string> headers = null)
    Parameters
    Type Name Description
    int errorCode

    HTTP status code.

    string message

    Error message.

    object errorContent

    Error content.

    Multimap<string, string> headers

    HTTP Headers.

    View Source

    ApiException(int, string)

    Initializes a new instance of the ApiException class.

    Declaration
    public ApiException(int errorCode, string message)
    Parameters
    Type Name Description
    int errorCode

    HTTP status code.

    string message

    Error message.

    Properties

    View Source

    ErrorCode

    Gets or sets the error code (HTTP status code)

    Declaration
    public int ErrorCode { get; set; }
    Property Value
    Type Description
    int

    The error code (HTTP status code).

    View Source

    ErrorContent

    Gets or sets the error content (body json object)

    Declaration
    public object ErrorContent { get; }
    Property Value
    Type Description
    object

    The error content (Http response body).

    View Source

    Headers

    Gets or sets the HTTP headers

    Declaration
    public Multimap<string, string> Headers { get; }
    Property Value
    Type Description
    Multimap<string, string>

    HTTP headers

    Implements

    System.Runtime.Serialization.ISerializable
    • View Source
    In This Article
    Back to top See MailSlurp website for more information.