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