com.ibatis.sqlmap.client

Class SqlMapException

public class SqlMapException extends 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).

Constructor Summary
SqlMapException()
Simple constructor
SqlMapException(String msg)
Constructor to create exception with a message
SqlMapException(Throwable cause)
Constructor to create exception to wrap another exception
SqlMapException(String msg, Throwable cause)
Constructor to create exception to wrap another exception and pass a message

Constructor Detail

SqlMapException

public SqlMapException()
Simple constructor

SqlMapException

public SqlMapException(String msg)
Constructor to create exception with a message

Parameters: msg A message to associate with the exception

SqlMapException

public SqlMapException(Throwable cause)
Constructor to create exception to wrap another exception

Parameters: cause The real cause of the exception

SqlMapException

public SqlMapException(String msg, 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

Copyright © 2011. All Rights Reserved.