Record Class HttpUtil.Result.Failure<T>
java.lang.Object
java.lang.Record
kr.toxicity.model.api.util.HttpUtil.Result.Failure<T>
- Type Parameters:
T- type- Record Components:
exception- exception
- All Implemented Interfaces:
HttpUtil.Result<T>
- Enclosing interface:
HttpUtil.Result<T>
public static record HttpUtil.Result.Failure<T>(@NotNull Exception exception)
extends Record
implements HttpUtil.Result<T>
Failure
-
Nested Class Summary
Nested classes/interfaces inherited from interface HttpUtil.Result
HttpUtil.Result.Failure<T>, HttpUtil.Result.Success<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotNull ExceptionReturns the value of theexceptionrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Methods inherited from interface HttpUtil.Result
orElse
-
Constructor Details
-
Failure
-
-
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). -
exception
-