com.ibatis.sqlmap.client
Class SqlMapException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.ibatis.common.exception.NestedRuntimeException
com.ibatis.sqlmap.client.SqlMapException
- All Implemented Interfaces:
- java.io.Serializable
- public class SqlMapException
- extends NestedRuntimeException
Thrown to indicate a problem with SQL Map configuration or state. Generally
if an SqlMapException is thrown, something is critically wronge and cannot
be corrected until a change to the configuration or the environment is made.
Note: Generally this wouldn't be used to indicate that an SQL execution error
occurred (that's what SQLException is for).
- See Also:
- Serialized Form
Fields inherited from class java.lang.RuntimeException |
|
Fields inherited from class java.lang.Throwable |
|
Constructor Summary |
SqlMapException()
Simple constructor |
SqlMapException(java.lang.String msg)
Constructor to create exception with a message |
SqlMapException(java.lang.String msg,
java.lang.Throwable cause)
Constructor to create exception to wrap another exception and pass a message |
SqlMapException(java.lang.Throwable cause)
Constructor to create exception to wrap another exception |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SqlMapException
public SqlMapException()
- Simple constructor
SqlMapException
public SqlMapException(java.lang.String msg)
- Constructor to create exception with a message
- Parameters:
msg
- A message to associate with the exception
SqlMapException
public SqlMapException(java.lang.Throwable cause)
- Constructor to create exception to wrap another exception
- Parameters:
cause
- The real cause of the exception
SqlMapException
public SqlMapException(java.lang.String msg,
java.lang.Throwable cause)
- Constructor to create exception to wrap another exception and pass a message
- Parameters:
msg
- The messagecause
- The real cause of the exception