Package org.jdbi.v3.core.extension
Class NoSuchExtensionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jdbi.v3.core.JdbiException
org.jdbi.v3.core.extension.NoSuchExtensionException
- All Implemented Interfaces:
Serializable
Thrown when no
ExtensionFactory
accepts a given extension type.- See Also:
-
Constructor Summary
ConstructorDescriptionNoSuchExtensionException
(Class<?> extensionClass) Creates an instance with an extension type and the default message.NoSuchExtensionException
(Class<?> extensionClass, String message) Creates an instance with an extension type and a custom message.NoSuchExtensionException
(Class<?> extensionClass, String message, Throwable cause) Creates an instance with an extension type and a custom message.NoSuchExtensionException
(Class<?> extensionClass, Throwable cause) Creates an instance with an extension type and the default message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoSuchExtensionException
Creates an instance with an extension type and the default message.- Parameters:
extensionClass
- The extension type. Can be null.
-
NoSuchExtensionException
Creates an instance with an extension type and a custom message.- Parameters:
message
- The message format for the exception. Must contain exactly one%s
placeholder for the extension class name.extensionClass
- The extension type. Can be null.
-
NoSuchExtensionException
Creates an instance with an extension type and the default message.- Parameters:
extensionClass
- The extension type. Can be null.cause
- A throwable that caused this exception.
-
NoSuchExtensionException
Creates an instance with an extension type and a custom message.- Parameters:
message
- The message format for the exception. Must contain exactly one%s
placeholder for the extension class name.extensionClass
- The extension type. Can be null.cause
- A throwable that caused this exception.
-