FMIceLinkStunError Class Reference

Inherits from FMIceLinkError : NSObject
Declared in FMIceLinkStunError.h
FMIceLinkStunError.m

Overview

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

+ createStunErrorWithErrorCode:message:

Creates error for the given error code and with a given [message](#//api/name/message).
+ (FMIceLinkError *)createStunErrorWithErrorCode:(int)errorCode message:(FMIceLinkStunMessage *)message

Parameters

errorCode

Stun error code

message

Error message

Discussion

Creates error for the given error code and with a given [message](#//api/name/message).

Declared In

FMIceLinkStunError.h

+ errorWithErrorCode:message:

Initializes a new instance of the FMIceLinkStunError class.
+ (FMIceLinkStunError *)errorWithErrorCode:(FMIceLinkErrorCode)errorCode message:(NSString *)message

Parameters

errorCode

The error code.

message

The error message.

Discussion

Initializes a new instance of the FMIceLinkStunError class.

Declared In

FMIceLinkStunError.h

– initWithErrorCode:message:

Initializes a new instance of the FMIceLinkStunError class.
- (instancetype)initWithErrorCode:(FMIceLinkErrorCode)errorCode message:(NSString *)message

Parameters

errorCode

The error code.

message

The error message.

Discussion

Initializes a new instance of the FMIceLinkStunError class.

Declared In

FMIceLinkStunError.h

– message

Gets the message associated with this error
- (NSString *)message

Discussion

Gets the message associated with this error

Declared In

FMIceLinkStunError.h

– setMessage:

Sets the [message](#//api/name/message) associated with this error
- (void)setMessage:(NSString *)value

Discussion

Sets the [message](#//api/name/message) associated with this error

Declared In

FMIceLinkStunError.h

– stunErrorCode

Gets this error's code
- (int)stunErrorCode

Discussion

Gets this error's code

Declared In

FMIceLinkStunError.h