Record Class ExceptionDeserializerArgs.ErrorExceptionPair<U extends com.palantir.conjure.java.api.errors.AbstractSerializableError<?>, V extends com.palantir.conjure.java.api.errors.RemoteException & com.palantir.conjure.java.api.errors.SerializableErrorProvider<?>>
java.lang.Object
java.lang.Record
com.palantir.dialogue.ExceptionDeserializerArgs.ErrorExceptionPair<U,V>
- Enclosing class:
ExceptionDeserializerArgs<T>
public static record ExceptionDeserializerArgs.ErrorExceptionPair<U extends com.palantir.conjure.java.api.errors.AbstractSerializableError<?>, V extends com.palantir.conjure.java.api.errors.RemoteException & com.palantir.conjure.java.api.errors.SerializableErrorProvider<?>>(TypeMarker<U extends com.palantir.conjure.java.api.errors.AbstractSerializableError<?>> errorType, TypeMarker<V extends com.palantir.conjure.java.api.errors.RemoteException & com.palantir.conjure.java.api.errors.SerializableErrorProvider<?>> exceptionType)
extends Record
This record is used in the implementation of Dialogue's error decoder. This should not be used by clients. It
is public to allow usage in the implementation in the com.palantir.conjure.java.dialogue.serde package.
-
Constructor Summary
ConstructorsConstructorDescriptionErrorExceptionPair(TypeMarker<U> errorType, TypeMarker<V> exceptionType) Creates an instance of aErrorExceptionPairrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorTyperecord component.Returns the value of theexceptionTyperecord component.static <U extends com.palantir.conjure.java.api.errors.AbstractSerializableError<?>, V extends com.palantir.conjure.java.api.errors.RemoteException & com.palantir.conjure.java.api.errors.SerializableErrorProvider<?>>
VgetExceptionFromSerializableError(U error, TypeMarker<V> exceptionType, int code) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ErrorExceptionPair
Creates an instance of aErrorExceptionPairrecord class.- Parameters:
errorType- the value for theerrorTyperecord componentexceptionType- the value for theexceptionTyperecord component
-
-
Method Details
-
getExceptionFromSerializableError
public static <U extends com.palantir.conjure.java.api.errors.AbstractSerializableError<?>, V extends com.palantir.conjure.java.api.errors.RemoteException & com.palantir.conjure.java.api.errors.SerializableErrorProvider<?>> V getExceptionFromSerializableError(U error, TypeMarker<V> exceptionType, int code) throws InvocationTargetException, InstantiationException, IllegalAccessException -
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). -
errorType
Returns the value of theerrorTyperecord component.- Returns:
- the value of the
errorTyperecord component
-
exceptionType
Returns the value of theexceptionTyperecord component.- Returns:
- the value of the
exceptionTyperecord component
-