Package ratpack.exec.registry
Class NotInRegistryException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- ratpack.exec.registry.NotInRegistryException
-
- All Implemented Interfaces:
Serializable
public class NotInRegistryException extends RuntimeException
Thrown when a request is made for an object that a registry cannot provide.- See Also:
Registry.get(Class)
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NotInRegistryException(com.google.common.reflect.TypeToken<?> type)
Constructs the exception.NotInRegistryException(String message)
Constructor.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
NotInRegistryException
public NotInRegistryException(com.google.common.reflect.TypeToken<?> type)
Constructs the exception.- Parameters:
type
- The requested type of the object
-
NotInRegistryException
public NotInRegistryException(String message)
Constructor.- Parameters:
message
- The exception message
-
-