SBError

public final class SBError : NSError

Sendbird error class.

  • Create error object with Dictionary.

    Declaration

    Swift

    @objc
    public static func error(withDictionary dict: [String : Any]) -> SBError?

    Parameters

    dict

    Error Data

    Return Value

    SBError object.

  • Create error object with NSError object.

    Declaration

    Swift

    @objc
    public static func error(withNSError error: NSError) -> SBError?

    Parameters

    error

    NSError Object.

    Return Value

    SBError object.

  • Create error object

    Declaration

    Swift

    public override init(domain: String, code: Int, userInfo dict: [String : Any]? = nil)

    Parameters

    domain

    domain.

    code

    error code.

    dict

    additional info in dictionary