|
OBEROn SDK | |||||||||
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 com.oberon.ooql.sdk.OberonException
public class OberonException
Generic OBEROn Exception
Constructor Summary | |
---|---|
OberonException(java.lang.String message)
Raise new exception |
|
OberonException(java.lang.String message,
java.lang.String selectedText)
Raise new exception |
|
OberonException(java.lang.String errorKey,
java.lang.String[] params)
Raise new exception |
Method Summary | |
---|---|
void |
addLevelMessage(java.lang.String levelmessage)
When exception are nested, you can add text to extend the exception message |
void |
fromXML(org.jdom.Element rootElement)
Load the OberonException object properties from XML element tree |
static OberonException |
generateOberonException(java.lang.Exception ex)
Convert a generic Exception to an OberonException |
static OberonException |
generateOberonException(java.lang.Exception ex,
java.lang.String levelMessage)
Convert a generic Exception to an OberonException, appending a new level message |
static java.lang.String |
generateOberonMessage(java.lang.Exception ex,
Framework framework)
Get the message from an Exception |
java.lang.String |
getErrorKey()
Get the dictionary keyword for message translation |
java.lang.String |
getLocalizedMessage(Framework framework)
Get the localized exception message Translate the message to the current user framework language |
java.lang.String |
getLocalizedMessage(javax.servlet.http.HttpSession session)
Get the localized exception message Translate the message to the current session language |
java.lang.String |
getLocalizedMessage(java.lang.String errorSection,
Framework framework)
Get the localized exception message Translate the message to the current user framework language and search for translation inside the specified section |
java.lang.String |
getLocalizedMessage(java.lang.String errorSection,
javax.servlet.http.HttpSession session)
Get the localized exception message. |
java.lang.String |
getLocalizedMessage(java.lang.String language,
java.lang.String errorSection,
Framework framework)
Get the localized exception message Translate the message to the given language and search for translation inside the specified section |
java.lang.String |
getLocalizedMessage(java.lang.String language,
java.lang.String errorSection,
javax.servlet.http.HttpSession session)
Get the localized exception message. |
java.lang.String |
getMessage()
Get the exception message |
java.lang.Object[] |
getParams()
Get the parameters to be replaced in the message |
java.lang.String |
getSelectedText()
Get the text (or part of a command) to highlight |
void |
setErrorKey(java.lang.String errorKey)
Set the dictionary keyword for message translation |
void |
setMessage(java.lang.String message)
Set the exception message |
void |
setParams(java.lang.String[] params)
Set the parameters to be replaced in the message |
void |
setSelectedText(java.lang.String selectedText)
Set the text (or part of a command) to highlight |
org.jdom.Element |
toXML()
Return the OberonException object properties as XML element tree |
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 |
---|
public OberonException(java.lang.String message)
message
- the exception messagepublic OberonException(java.lang.String message, java.lang.String selectedText)
message
- the exception messageselectedText
- set the text (or part of a command) to highlightpublic OberonException(java.lang.String errorKey, java.lang.String[] params)
errorKey
- the dictionary keyword for message translationparams
- parameters to be replaced in the messageMethod Detail |
---|
public void setMessage(java.lang.String message)
public void setSelectedText(java.lang.String selectedText)
public void setErrorKey(java.lang.String errorKey)
public void setParams(java.lang.String[] params)
public void addLevelMessage(java.lang.String levelmessage)
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getSelectedText()
public java.lang.String getErrorKey()
public java.lang.Object[] getParams()
public java.lang.String getLocalizedMessage(javax.servlet.http.HttpSession session)
public java.lang.String getLocalizedMessage(java.lang.String errorSection, javax.servlet.http.HttpSession session)
public java.lang.String getLocalizedMessage(java.lang.String language, java.lang.String errorSection, javax.servlet.http.HttpSession session)
public java.lang.String getLocalizedMessage(Framework framework)
public java.lang.String getLocalizedMessage(java.lang.String errorSection, Framework framework)
public java.lang.String getLocalizedMessage(java.lang.String language, java.lang.String errorSection, Framework framework)
public static java.lang.String generateOberonMessage(java.lang.Exception ex, Framework framework)
public static OberonException generateOberonException(java.lang.Exception ex)
public static OberonException generateOberonException(java.lang.Exception ex, java.lang.String levelMessage)
public org.jdom.Element toXML()
public void fromXML(org.jdom.Element rootElement)
|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |