Search Results for

    Show / Hide Table of Contents

    Class Error

    Common functionality of various STUN/TURN server exceptions that occur while processing Allocation and Binding requests.

    Inheritance
    System.Object
    Error
    Error
    BadRequestError
    RoleConflictError
    IntegrityCheckFailureError
    MissingUsernameError
    ServerError
    StaleCredentialsError
    StaleNonceError
    TryAlternateStunError
    AddressFamilyNotSupportedError
    AllocationMismatchError
    AllocationQuotaReachedError
    ConnectionAlreadyExistsError
    ConnectionTimeoutOrFailureError
    ForbiddenError
    InsufficientCapacityError
    MobilityForbiddenError
    PeerAddressFamilyMismatchError
    UnsupportedTransportProtocolError
    WrongCredentialsError
    UnauthorizedStunError
    UnknownAttributeError
    Inherited Members
    Error.ErrorCode
    Error.Code
    Error.CodeValue
    Error.Exception
    Error.Message
    Error.GetDescription()
    Error.ToString()
    Error.ToJson()
    Error.ToJson(Error)
    Error.FromJson(String)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: FM.LiveSwitch.Stun
    Assembly: FM.LiveSwitch.dll
    Syntax
    public abstract class Error : Error

    Constructors

    Error(ErrorCode, String)

    Initializes a new instance of the Error class.

    Declaration
    public Error(ErrorCode code, string message)
    Parameters
    Type Name Description
    ErrorCode code

    The error code.

    System.String message

    The error message.

    Properties

    StunCode

    Gets the STUN code.

    Declaration
    public int StunCode { get; }
    Property Value
    Type Description
    System.Int32

    StunErrorCode

    Gets the STUN code.

    Declaration
    [Obsolete("Use StunCode instead.")]
    public int StunErrorCode { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    CreateStunError(Int32, Message)

    Creates error for the given error code and with a given message.

    Declaration
    public static Error CreateStunError(int code, Message message)
    Parameters
    Type Name Description
    System.Int32 code

    The error code.

    Message message

    The error message.

    Returns
    Type Description
    Error
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0