|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--planetj.exception.CMException
Common exception that can be used as a generic Exception. First and second level text can be assigned to the message and detailedMessage properties.
Field Summary | |
static int |
DISPLAY_ALL
|
static int |
DISPLAY_CLASS_INFO
|
static int |
DISPLAY_DETAILED_MESSAGE
|
static int |
DISPLAY_MESSAGE
|
static int |
DISPLAY_ORIGINAL_EXCEPTION
|
static char |
FATAL
|
static char |
INFO
|
static String |
SHOW_EXCEPTION
|
static char |
WARNING
|
Constructor Summary | |
CMException()
CMException constructor comment. |
|
CMException(Exception e)
Constructor that wraps a generic exception |
|
CMException(Exception e,
String pMessage)
Constructor that wraps a generic exception |
|
CMException(String s)
CMException constructor comment. |
|
CMException(String s,
char c)
CMException constructor comment. |
Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener listener)
The addPropertyChangeListener method was generated to support the propertyChange field. |
void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
The firePropertyChange method was generated to support the propertyChange field. |
CMMessage |
getCMMessage()
Return the CM message associated with this Exception |
String |
getDetailedMessage()
Gets the detailedMessage property (java.lang.String) value. |
String |
getDisplayString()
Returns the exception output as it should be displayed |
int |
getDisplayType()
Gets what information should be included in the output of the getDisplayString() method |
String |
getMessage()
Gets the message property (java.lang.String) value. |
CMException |
getNextException()
Retrieves the exception chained to this CMException object. |
Exception |
getOriginalException()
Gets the original exception that this CMException was created from. |
char |
getType()
Gets the type property (char) value. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
The removePropertyChangeListener method was generated to support the propertyChange field. |
void |
setDetailedMessage(String detailedMessage)
Sets the detailedMessage property (java.lang.String) value. |
void |
setDisplayType(int newDisplayType)
Gets what information should be included in the output of the getDisplayString() method |
void |
setMessage(String message)
Sets the message property (java.lang.String) value. |
void |
setNextException(CMException exception)
Adds a CMException object to the end of the chain. |
void |
setOriginalException(Exception newOriginalException)
Sets the original exception that this CMException was created from. |
void |
setType(char type)
Sets the type property (char) value. |
String |
toString()
Returns the exception output as a String. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final char INFO
public static final char WARNING
public static final char FATAL
public static final String SHOW_EXCEPTION
public static final int DISPLAY_CLASS_INFO
public static final int DISPLAY_MESSAGE
public static final int DISPLAY_DETAILED_MESSAGE
public static final int DISPLAY_ORIGINAL_EXCEPTION
public static final int DISPLAY_ALL
Constructor Detail |
public CMException()
public CMException(Exception e)
public CMException(Exception e, String pMessage)
public CMException(String s)
s
- java.lang.Stringpublic CMException(String s, char c)
s
- java.lang.StringMethod Detail |
public void addPropertyChangeListener(PropertyChangeListener listener)
public void firePropertyChange(String propertyName, Object oldValue, Object newValue)
public CMMessage getCMMessage()
public String getDetailedMessage()
setDetailedMessage(java.lang.String)
public String getDisplayString()
public int getDisplayType()
public String getMessage()
getMessage
in class Throwable
setMessage(java.lang.String)
public CMException getNextException()
CMException
object.
public Exception getOriginalException()
java.lang.Exception
that this CMException
encapsulates. Returns null if this was created from scratch.public char getType()
setType(char)
public void removePropertyChangeListener(PropertyChangeListener listener)
public void setDetailedMessage(String detailedMessage)
detailedMessage
- The new value for the property.getDetailedMessage()
public void setDisplayType(int newDisplayType)
public void setMessage(String message)
message
- The new value for the property.getMessage()
public void setNextException(CMException exception)
CMException
object to the end of the chain.
exception
- the new exception that will be added to the end of
the CMException chainpublic void setOriginalException(Exception newOriginalException)
newOriginalException
- java.lang.Exceptionpublic void setType(char type)
type
- The new value for the property.getType()
public String toString()
toString
in class Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |