Class NoResponseFactoryException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.grumpystuff.grumpyrest.response.NoResponseFactoryException
All Implemented Interfaces:
Serializable

public final class NoResponseFactoryException extends RuntimeException
This exception type gets thrown if no response factory can be found for a specific response value. The most common case for this is that the response value is itself an unexpected exception. That response value will be hidden from the client so we don't leak any secrets, but it will be logged.
See Also:
  • Constructor Details

    • NoResponseFactoryException

      public NoResponseFactoryException(Object responseValue)
      Constructor.
      Parameters:
      responseValue - the response value for which no factory could be found
  • Method Details

    • getResponseValue

      public Object getResponseValue()
      Getter for the response value
      Returns:
      the response value