Record Class HttpError.NetworkFailure
java.lang.Object
java.lang.Record
dmx.fun.http.HttpError.NetworkFailure
- Record Components:
cause- the underlying exception
- All Implemented Interfaces:
HttpError
- Enclosing interface:
HttpError
Any failure that prevented a valid response from being produced. Covers two categories:
- Transport failures —
IOException,InterruptedException, or other network-level errors thrown by the underlyingHttpClientbefore a response is received. - Processing failures — exceptions thrown by a caller-supplied deserializer (e.g. JSON parse errors) after a successful HTTP response was received but before a typed value could be produced.
-
Nested Class Summary
Nested classes/interfaces inherited from interface HttpError
HttpError.ClientError, HttpError.NetworkFailure, HttpError.ServerError, HttpError.Timeout -
Constructor Summary
ConstructorsConstructorDescriptionNetworkFailure(Throwable cause) Creates an instance of aNetworkFailurerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncause()Returns the value of thecauserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NetworkFailure
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
cause
-