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 1917245 2024-04-21 14:06:23Z tv $
  • Constructor Details

    • ExceptionMapperImpl

      public ExceptionMapperImpl()
  • Method Details

    • toTorqueException

      public TorqueException toTorqueException(SQLException sqlException)
      Description copied from class: ExceptionMapper
      Maps a SQLException to an appropriate TorqueException.
      Specified by:
      toTorqueException in class ExceptionMapper
      Parameters:
      sqlException - the sqlException to map, not null.
      Returns:
      the maped TorqueException, containing the original exception as a cause, not null.