Class ExceptionDeserializerArgs<T>
java.lang.Object
com.palantir.dialogue.ExceptionDeserializerArgs<T>
- Type Parameters:
T- the return type for successful responses
Arguments for deserializing exceptions from error responses.
This class enables deserializing error responses into exceptions. It holds the return type for successful responses and maintains a mapping from error names to their corresponding error and exception types.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final recordExceptionDeserializerArgs.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<?>>This record is used in the implementation of Dialogue's error decoder. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ExceptionDeserializerArgs.Builder<T> builder()booleancom.google.common.collect.ImmutableMap<String, ExceptionDeserializerArgs.ErrorExceptionPair<?, ?>> inthashCode()toString()
-
Method Details
-
toString
-
equals
-
hashCode
-
builder
-
returnType
-
errorNameToExceptionTypeMarkers
public com.google.common.collect.ImmutableMap<String, ExceptionDeserializerArgs.ErrorExceptionPair<?,?>> errorNameToExceptionTypeMarkers()
-