Class Adapter.AdapterException

All Implemented Interfaces:
Serializable
Enclosing class:
Adapter<T,U>

public static class Adapter.AdapterException extends RuntimeException
A lightweight unchecked exception used to wrap checked ones (often SQLException) in settings where checked ones are a bother.

The idea may or may not be worth keeping, and either way, this particular exception might not be part of any final API.

See Also:
  • Method Details

    • unwrap

      public <X extends Throwable> X unwrap(Class<X> declared)
      Unwraps this wrapper's cause and returns it, if it is an instance of the exception type declared; otherwise, just throws this wrapper again.