|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zphinx.spine.message.DisplayMessage
com.zphinx.spine.message.DisplayError
public class DisplayError
DisplayError serves as a nominal error object generated within the spine framework. It use the concept of a message severity based on the following:
Copyright ©Zphinx Software Solutions
| Field Summary |
|---|
| Fields inherited from interface com.zphinx.spine.message.ErrorMessages |
|---|
ERROR_EXCEPTION, ERROR_NONE, ERROR_PROCESS, ERROR_SYSTEM, ERROR_WARNING |
| Constructor Summary | |
|---|---|
DisplayError()
Public Constructor |
|
DisplayError(int severity)
Public Constructor which sets the severity of the error |
|
DisplayError(int severity,
String message)
Public Constructor which sets a message and severity of the error |
|
DisplayError(int severity,
String message,
Object[] arguments)
Constructs a DisplayError with parametric replacements |
|
DisplayError(String message,
Object[] arguments)
Constructs a DisplayError with parametric replacements |
|
| Method Summary | |
|---|---|
int |
getSeverity()
Gets the severity |
void |
setMessage(int severity,
String message)
Sets a message and it's severity |
void |
setSeverity(int severity)
Sets the severity of this error |
String |
toString()
Returns the string representation of this object |
| Methods inherited from class com.zphinx.spine.message.DisplayMessage |
|---|
getArguments, getMessage, setArguments, setMessage, setMessage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DisplayError()
public DisplayError(int severity)
severity - The severity of this error can be one of the values defined above
public DisplayError(String message,
Object[] arguments)
message - The string which represents the key by which this message is discoveredarguments - The arguments to use for parametric replacements
public DisplayError(int severity,
String message)
severity - The severity of this error can be one of those defined abovemessage - The string which represents the key by which this message is discovered
public DisplayError(int severity,
String message,
Object[] arguments)
severity - The severity of this errormessage - The string which represents the key by which this message is discoveredarguments - The arguments to use for parametric replacements| Method Detail |
|---|
public int getSeverity()
public void setSeverity(int severity)
severity - the severity to set
public void setMessage(int severity,
String message)
severity - The severity of this errormessage - The message or key to be setpublic String toString()
toString in class DisplayMessage
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||