Show / Hide Table of Contents

    Class ApiException

    API Exception

    Inheritance
    System.Object
    System.Exception
    ApiException
    Implements
    System.Runtime.Serialization.ISerializable
    Inherited Members
    System.Exception.GetBaseException()
    System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
    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: Algorand.Client
    Assembly: Algorand.dll
    Syntax
    public class ApiException : Exception, ISerializable

    Constructors

    | Improve this Doc View Source

    ApiException()

    Initializes a new instance of the ApiException class.

    Declaration
    public ApiException()
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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 Source

    ErrorCode

    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).

    | Improve this Doc View Source

    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
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX