Class Error
Common functionality of various STUN/TURN server exceptions that occur while processing Allocation and Binding requests.
Inheritance
System.Object
Error
Inherited Members
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
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 |