com.ibatis.sqlmap.client
Class SqlMapException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.ibatis.sqlmap.client.SqlMapException
All Implemented Interfaces:
java.io.Serializable

public class SqlMapException
extends java.lang.RuntimeException

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

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, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 message
cause - The real cause of the exception