HTTPError

open class HTTPError : DataNetworkError

An exception thrown if HttpRequest.send cannot be completed due to a network error, or when one of the HTTP functions is used in an inappropriate manner or with invalid parameters.

  • Default initializer.

    Declaration

    Swift

    override public init()
  • Declaration

    Swift

    open class func withCause(_ cause: Error) -> HTTPError

    Parameters

    cause

    Root cause.

    Return Value

    A new exception with the specified root cause.

  • Declaration

    Swift

    open class func withCauseAndMessage(cause: Error, message: String) -> HTTPError

    Parameters

    cause

    Root cause.

    message

    Message text.

    Return Value

    A new exception with the specified root cause and message text.

  • Declaration

    Swift

    open class func withMessage(_ message: String) -> HTTPError

    Parameters

    message

    Message text.

    Return Value

    A new exception with the specified message text.