TradableError

@objc public class TradableError: NSObject

TradableError contains detailed description about an error delivered in the API response.

  • A raw json response returned with the error. Might be nil for errors not coming from the server.

    Declaration

    Swift

    public let rawJsonResponse: JSON?
  • A raw http response returned with the error. Might be nil for errors not coming from the server.

    Declaration

    Swift

    @objc public let rawHttpResponse: HTTPURLResponse?
  • The error code.

    Declaration

    Swift

    @objc public let errorCode: Int
  • A description of the error.

    Declaration

    Swift

    @objc public let errorDescription: String
  • The debug info of the error.

    Declaration

    Swift

    @objc public let errorDebug: String
  • The error details. Might be nil.

    Declaration

    Swift

    @objc public let errorDetails: String?
  • The type of the error.

    Declaration

    Swift

    @objc public let errorType: TradableErrorType
  • The account this error regards. Might be nil.

    Declaration

    Swift

    @objc public let associatedAccount: TradableAccount?
  • Simple description of this object.

    Declaration

    Swift

    public override var description: String