Class ExceptionDeserializerArgs.Builder<T>

java.lang.Object
com.palantir.dialogue.ExceptionDeserializerArgs.Builder<T>
Enclosing class:
ExceptionDeserializerArgs<T>

public static final class ExceptionDeserializerArgs.Builder<T> extends Object
  • Method Details

    • returnType

      public ExceptionDeserializerArgs.Builder<T> returnType(TypeMarker<T> returnT)
    • 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 error
      errorType - the type marker for the error
      exceptionType - 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

      public ExceptionDeserializerArgs<T> build()