Record Class HttpError.Timeout
java.lang.Object
java.lang.Record
dmx.fun.http.HttpError.Timeout
- Record Components:
cause- the timeout exception
- All Implemented Interfaces:
HttpError
- Enclosing interface:
HttpError
public static record HttpError.Timeout(HttpTimeoutException cause)
extends Record
implements HttpError
HttpTimeoutException thrown by the underlying HttpClient.-
Nested Class Summary
Nested classes/interfaces inherited from interface HttpError
HttpError.ClientError, HttpError.NetworkFailure, HttpError.ServerError, HttpError.Timeout -
Constructor Summary
ConstructorsConstructorDescriptionTimeout(HttpTimeoutException cause) Creates an instance of aTimeoutrecord 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
-
Timeout
Creates an instance of aTimeoutrecord class.- Parameters:
cause- the value for thecauserecord component
-
-
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
-