Class ExceptionDeserializerArgs.Builder<T>
java.lang.Object
com.palantir.dialogue.ExceptionDeserializerArgs.Builder<T>
- Enclosing class:
ExceptionDeserializerArgs<T>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()<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<?>>
ExceptionDeserializerArgs.Builder<T> exception(String errorName, TypeMarker<U> errorType, TypeMarker<V> exceptionType) Registers an error name with its corresponding error type and exception type.returnType(TypeMarker<T> returnT)
-
Method Details
-
returnType
-
exception
public <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<?>> ExceptionDeserializerArgs.Builder<T> exception(String errorName, TypeMarker<U> errorType, TypeMarker<V> exceptionType) Registers an error name with its corresponding error type and exception type.- Parameters:
errorName- the name of the errorerrorType- the type marker for the errorexceptionType- the type marker for the exception. It is expected that the exception type implements a constructor that takes the error type as the first parameter, and an integer status code as the second.
-
build
-