Package org.apache.torque.util
Klasse ExceptionMapper
java.lang.Object
org.apache.torque.util.ExceptionMapper
- Bekannte direkte Unterklassen:
ExceptionMapperImpl
Translates Database Exceptions into TorqueExceptions.
- Version:
- $Id: ExceptionMapper.java 1448414 2013-02-20 21:06:35Z tfischer $
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic final ExceptionMapper
Returns the current instance of the Exception mapper to use.static final void
setInstance
(ExceptionMapper newInstance) Sets a new instance of an Exception mapper to use.abstract TorqueException
toTorqueException
(SQLException sqlException) Maps a SQLException to an appropriate TorqueException.
-
Konstruktordetails
-
ExceptionMapper
public ExceptionMapper()
-
-
Methodendetails
-
getInstance
Returns the current instance of the Exception mapper to use.- Gibt zurück:
- the current Exception mapper instance.
-
setInstance
Sets a new instance of an Exception mapper to use.- Parameter:
newInstance
- the new Exception mapper instance, not null.
-
toTorqueException
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.
-