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:
java.io.Serializable
public final class NoSuchExtensionException extends JdbiException
Thrown when noExtensionFactoryaccepts a given extension type.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringDEFAULT_MESSAGEprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description NoSuchExtensionException(java.lang.Class<?> extensionClass)Creates an instance with an extension type and the default message.NoSuchExtensionException(java.lang.Class<?> extensionClass, java.lang.String message)Creates an instance with an extension type and a custom message.NoSuchExtensionException(java.lang.Class<?> extensionClass, java.lang.String message, java.lang.Throwable cause)Creates an instance with an extension type and a custom message.NoSuchExtensionException(java.lang.Class<?> extensionClass, java.lang.Throwable cause)Creates an instance with an extension type and the default message.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static java.lang.StringformatMessage(java.lang.Class<?> extensionClass, java.lang.String formatString)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
DEFAULT_MESSAGE
private static final java.lang.String DEFAULT_MESSAGE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NoSuchExtensionException
public NoSuchExtensionException(java.lang.Class<?> extensionClass)
Creates an instance with an extension type and the default message.- Parameters:
extensionClass- The extension type. Can be null.
-
NoSuchExtensionException
public NoSuchExtensionException(java.lang.Class<?> extensionClass, java.lang.String message)Creates an instance with an extension type and a custom message.- Parameters:
message- The message format for the exception. Must contain exactly one%splaceholder for the extension class name.extensionClass- The extension type. Can be null.
-
NoSuchExtensionException
public NoSuchExtensionException(java.lang.Class<?> extensionClass, java.lang.Throwable cause)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
public NoSuchExtensionException(java.lang.Class<?> extensionClass, java.lang.String message, java.lang.Throwable cause)Creates an instance with an extension type and a custom message.- Parameters:
message- The message format for the exception. Must contain exactly one%splaceholder for the extension class name.extensionClass- The extension type. Can be null.cause- A throwable that caused this exception.
-
-