Class NoSuchExtensionException

All Implemented Interfaces:
Serializable

public final class NoSuchExtensionException extends JdbiException
Thrown when no ExtensionFactory accepts a given extension type.
See Also:
  • Constructor Details

    • NoSuchExtensionException

      public NoSuchExtensionException(Class<?> extensionClass)
      Creates an instance with an extension type and the default message.
      Parameters:
      extensionClass - The extension type. Can be null.
    • NoSuchExtensionException

      public NoSuchExtensionException(Class<?> extensionClass, String message)
      Creates an instance with an extension type and a custom message.
      Parameters:
      extensionClass - The extension type. Can be null.
      message - The message format for the exception. Must contain exactly one %s placeholder for the extension class name.
    • NoSuchExtensionException

      public NoSuchExtensionException(Class<?> extensionClass, 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(Class<?> extensionClass, String message, Throwable cause)
      Creates an instance with an extension type and a custom message.
      Parameters:
      extensionClass - The extension type. Can be null.
      message - The message format for the exception. Must contain exactly one %s placeholder for the extension class name.
      cause - A throwable that caused this exception.