Side of Software
Persistence Library 2.0

sos.db
Class DatabaseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by sos.db.DatabaseException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DatabaseCorruptedException, TransactionConflictException

public class DatabaseException
extends java.io.IOException

A parent exception to a variety of database exceptions. The client should catch this exception only when the exception handling code would be the same for all subclasses of this class.

This exception is checked.

Since:
1.0
See Also:
DatabaseCorruptedException, TransactionConflictException

Constructor Summary
DatabaseException()
          Creates an instance of DatabaseException with a null detail message.
DatabaseException(java.lang.String msg)
          Creates an instance of DatabaseException with the specified detail message.
DatabaseException(java.lang.String msg, java.lang.Throwable cause)
          Creates an instance of DatabaseException with the specified detail message and cause.
DatabaseException(java.lang.Throwable cause)
          Creates an instance of DatabaseException with a null detail message and the specified cause.
 
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
 

Constructor Detail

DatabaseException

public DatabaseException()
Creates an instance of DatabaseException with a null detail message.


DatabaseException

public DatabaseException(java.lang.String msg)
Creates an instance of DatabaseException with the specified detail message.

Parameters:
msg - the detail message

DatabaseException

public DatabaseException(java.lang.Throwable cause)
Creates an instance of DatabaseException with a null detail message and the specified cause.

Parameters:
cause - the cause of this exception

DatabaseException

public DatabaseException(java.lang.String msg,
                         java.lang.Throwable cause)
Creates an instance of DatabaseException with the specified detail message and cause.

Parameters:
msg - the detail message
cause - the cause of this exception

Side of Software
Persistence Library 2.0

Copyright 2004-08 Side of Software (SOS). All rights reserved.