Klasse ExceptionMapper

java.lang.Object
org.apache.torque.util.ExceptionMapper
Bekannte direkte Unterklassen:
ExceptionMapperImpl

public abstract class ExceptionMapper extends Object
Translates Database Exceptions into TorqueExceptions.
Version:
$Id: ExceptionMapper.java 1448414 2013-02-20 21:06:35Z tfischer $
  • Konstruktordetails

    • ExceptionMapper

      public ExceptionMapper()
  • Methodendetails

    • getInstance

      public static final ExceptionMapper getInstance()
      Returns the current instance of the Exception mapper to use.
      Gibt zurück:
      the current Exception mapper instance.
    • setInstance

      public static final void setInstance(ExceptionMapper newInstance)
      Sets a new instance of an Exception mapper to use.
      Parameter:
      newInstance - the new Exception mapper instance, not null.
    • toTorqueException

      public abstract TorqueException toTorqueException(SQLException sqlException)
      Maps a SQLException to an appropriate TorqueException.
      Parameter:
      sqlException - the sqlException to map, not null.
      Gibt zurück:
      the maped TorqueException, containing the original exception as a cause, not null.