HTTPError
open class HTTPError : DataNetworkError, @unchecked Sendable
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) -> HTTPErrorParameters
causeRoot cause.
Return Value
A new exception with the specified root cause.
-
Declaration
Swift
open class func withCauseAndMessage(cause: Error?, message: String) -> HTTPErrorParameters
causeRoot cause.
messageMessage text.
Return Value
A new exception with the specified root cause and message text.
-
Declaration
Swift
open class func withMessage(_ message: String) -> HTTPErrorParameters
messageMessage text.
Return Value
A new exception with the specified message text.