Package ratpack.registry
Class NotInRegistryException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- ratpack.registry.NotInRegistryException
-
- All Implemented Interfaces:
java.io.Serializable
public class NotInRegistryException extends java.lang.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(java.lang.String message)
Constructor.
-
-
-
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(java.lang.String message)
Constructor.- Parameters:
message
- The exception message
-
-