Class SpringExceptionTranslator

  • All Implemented Interfaces:
    ExceptionTranslator

    public class SpringExceptionTranslator
    extends java.lang.Object
    implements ExceptionTranslator
    由spring框架支持都异常翻译

    SQLException将通过转换成spring标准的DataAccessException

    RuntimeException分类异常保持不变

    其他的Checked异常,将全部转换成SqlExUndeclaredException

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.RuntimeException translate​(java.lang.Exception ex)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • translate

        public java.lang.RuntimeException translate​(java.lang.Exception ex)
        Specified by:
        translate in interface ExceptionTranslator