Class SQLDetailException

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<java.lang.Throwable>

    public class SQLDetailException
    extends java.sql.SQLException
    An exception with SQL details, which may not be save to be included in the message to the client
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      SQLDetailException​(java.lang.String message, java.lang.String sql, java.sql.SQLException sqlException)  
      SQLDetailException​(java.lang.String message, java.sql.SQLException sqlException)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()  
      • Methods inherited from class java.sql.SQLException

        getErrorCode, getNextException, getSQLState, iterator, setNextException
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • SQLDetailException

        public SQLDetailException​(java.lang.String message,
                                  java.sql.SQLException sqlException)
        Parameters:
        message - explaining what happened
        sqlException - root cause
      • SQLDetailException

        public SQLDetailException​(java.lang.String message,
                                  java.lang.String sql,
                                  java.sql.SQLException sqlException)
        Parameters:
        message - explaining what happened
        sql - which caused this exception, may be null if not available
        sqlException - root cause
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable