|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.torque.util.ExceptionMapper
public abstract class ExceptionMapper
Translates Database Exceptions into TorqueExceptions.
Constructor Summary | |
---|---|
ExceptionMapper()
|
Method Summary | |
---|---|
static ExceptionMapper |
getInstance()
Returns the current instance of the Exception mapper to use. |
static 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExceptionMapper()
Method Detail |
---|
public static final ExceptionMapper getInstance()
public static final void setInstance(ExceptionMapper newInstance)
newInstance
- the new Exception mapper instance, not null.public abstract TorqueException toTorqueException(SQLException sqlException)
sqlException
- the sqlException to map, not null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |