idi.diplom.linda.exceptions
Class DatabaseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by idi.diplom.linda.exceptions.DatabaseException
All Implemented Interfaces:
java.io.Serializable

public class DatabaseException
extends java.lang.Exception

Exception thrown when an error occurs interacting with the database layer

See Also:
Serialized Form

Constructor Summary
DatabaseException()
          Empty constructor
DatabaseException(java.lang.String message)
          Constructor that sets the message
DatabaseException(java.lang.String message, java.lang.Throwable cause)
          Constructor that takes both a message and a throwable cause
DatabaseException(java.lang.Throwable cause)
          Constructor that takes a throwable cause
 
Method Summary
 java.lang.String getMessage()
          Gets the message
 void setMessage(java.lang.String message)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatabaseException

public DatabaseException()
Empty constructor


DatabaseException

public DatabaseException(java.lang.String message)
Constructor that sets the message

Parameters:
message -

DatabaseException

public DatabaseException(java.lang.Throwable cause)
Constructor that takes a throwable cause

Parameters:
cause -

DatabaseException

public DatabaseException(java.lang.String message,
                         java.lang.Throwable cause)
Constructor that takes both a message and a throwable cause

Parameters:
message -
cause -
Method Detail

getMessage

public java.lang.String getMessage()
Gets the message

Overrides:
getMessage in class java.lang.Throwable
Returns:
the message

setMessage

public void setMessage(java.lang.String message)
Parameters:
message - the message to set