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

    public let rawHttpResponse: HTTPURLResponse?
  • The error code.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    public override var description: String