TKMError

public class TKMError : Error

TKMError is used to represent errors inside many of the SDK’s components. To retrieve more information about the type of exception, the result of errorCode must be inspected.

  • Creates a TKMError with the given error code.

    Declaration

    Swift

    public init(errorCode: String)

    Parameters

    errorCode

    the error code of the TkException. Note that this constructor will create a TKMErrorDescriptor with this error code internally.

  • Creates a new TKMError with the given error descriptor.

    Declaration

    Swift

    public init(errorDescriptor: TKMErrorDescriptor)

    Parameters

    tkErrorDescriptor

    the TKMErrorDescriptor to be set for the TkException.