Package org.apache.torque.util
Class ExceptionMapperImpl
- java.lang.Object
-
- org.apache.torque.util.ExceptionMapper
-
- org.apache.torque.util.ExceptionMapperImpl
-
public class ExceptionMapperImpl extends ExceptionMapper
Default implementation of the ExceptionMapper interface.- Version:
- $Id: ExceptionMapperImpl.java 1867515 2019-09-25 15:02:03Z gk $
-
-
Constructor Summary
Constructors Constructor Description ExceptionMapperImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TorqueExceptiontoTorqueException(SQLException sqlException)Maps a SQLException to an appropriate TorqueException.-
Methods inherited from class org.apache.torque.util.ExceptionMapper
getInstance, setInstance
-
-
-
-
Method Detail
-
toTorqueException
public TorqueException toTorqueException(SQLException sqlException)
Description copied from class:ExceptionMapperMaps a SQLException to an appropriate TorqueException.- Specified by:
toTorqueExceptionin classExceptionMapper- Parameters:
sqlException- the sqlException to map, not null.- Returns:
- the maped TorqueException, containing the original exception as a cause, not null.
-
-