2.17.2: 2011-06-17

net.sf.basedb.core
Class BaseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.sf.basedb.core.BaseException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConfigurationException, ConnectionClosedException, DatabaseException, DetachedItemException, InvalidDataException, InvalidPasswordException, InvalidRelationException, PermissionDeniedException, SignalException

public class BaseException
extends RuntimeException

This is the base class for exceptions in BASE. All other exceptions defined by BASE are subclasses of this one.

Version:
2.0
Author:
Nicklas
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 
Constructor Summary
BaseException()
          Create a new BaseException object.
BaseException(SQLException cause)
          Create a new BaseException object where the cause is an SQLException.
BaseException(String message)
          Create a new BaseException object with the specified message
BaseException(String message, Throwable cause)
          Create a new BaseException object with the specified message
BaseException(Throwable cause)
          Create a new BaseException object acting as a wrapper for another exception that caused the error.
 
Method Summary
 
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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

BaseException

public BaseException()
Create a new BaseException object.


BaseException

public BaseException(String message)
Create a new BaseException object with the specified message

Parameters:
message - The message to throw with the exception

BaseException

public BaseException(String message,
                     Throwable cause)
Create a new BaseException object with the specified message

Parameters:
message - The message to throw with the exception
cause - The original exception

BaseException

public BaseException(Throwable cause)
Create a new BaseException object acting as a wrapper for another exception that caused the error.

Parameters:
cause - The original exception

BaseException

public BaseException(SQLException cause)
Create a new BaseException object where the cause is an SQLException. An SQLException is different from other exception in that is uses SQLException.getNextException() instead of Throwable.getCause() to chain exception. This constructor tries to copy the getNextException:s into the getCause chain.

Parameters:
cause - The SQL exception

2.17.2: 2011-06-17