org.brains2b.squeler.ddl
Class SquelerDDLException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.brains2b.squeler.ddl.SquelerDDLException
All Implemented Interfaces:
java.io.Serializable

public class SquelerDDLException
extends java.lang.Exception

Exception for SquelerDDL

Overwrites Exception to store information on the type the exception occured on and the name of the object to be created.

set indicators {type} or {name} in the message text to have it replaced by the set objectType or objectName respectively.

Future version will support other then English messages

Version:
0.10.1 [03-02-2005]
Author:
dennis@brains2b.nl
See Also:
Serialized Form

Constructor Summary
SquelerDDLException(java.lang.String objectType, java.lang.String objectName, java.lang.String message)
          Constructor for SquelerException.
 
Method Summary
 java.lang.String getLocalizedMessage()
          gets the Message with indicators replaced with their values.
 java.lang.String getMessage()
          gets the Message with indicators replaced with their values.
 java.lang.String getObjectName()
          gets the name of the object that could not be created
 java.lang.String getObjectType()
          gets a String representation of the type of object that could not be created.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

SquelerDDLException

public SquelerDDLException(java.lang.String objectType,
                           java.lang.String objectName,
                           java.lang.String message)
Constructor for SquelerException.

Parameters:
objectType - String representation of the type of object
objectName - String, the name of the object
message - String, A message either with or without indicators.
Method Detail

getMessage

public java.lang.String getMessage()
gets the Message with indicators replaced with their values.

Overrides:
getMessage in class java.lang.Throwable
See Also:
Throwable.getMessage()

getLocalizedMessage

public java.lang.String getLocalizedMessage()
gets the Message with indicators replaced with their values.

Note:No localization defined yet, just calls getMessage()

Overrides:
getLocalizedMessage in class java.lang.Throwable
See Also:
Throwable.getLocalizedMessage()

getObjectName

public java.lang.String getObjectName()
gets the name of the object that could not be created

Returns:
String, the name of the object

getObjectType

public java.lang.String getObjectType()
gets a String representation of the type of object that could not be created.

Returns:
String