|
AdventNet Web NMS 4 DMS API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--com.adventnet.nms.rta.fw.common.RTAException
This Exception will be extended by the RTA modules which like to throw exceptions from their applications.
| Constructor Summary | |
RTAException()
Constructs a new exception with empty string as its detail message. |
|
RTAException(java.lang.String message)
Constructs a new exception with the specified detail message. |
|
RTAException(java.lang.String title,
java.lang.String message)
Constructs a new exception with the specified detail message and title. |
|
| Method Summary | |
void |
addDetails(RTAException rex)
This is to add RTAException itself (nested). |
void |
addDetails(java.lang.String errMessage)
Add the details to the RTAException, which will be shown in the Exception dialog. |
void |
addDetails(java.lang.String fieldName,
java.lang.String errMessage)
This is to add the details to the RTAException. |
void |
addDetails(java.lang.String format,
java.lang.String[] values)
This is to add the details to the RTAException as format string and values that of in MessageFormat class. |
java.lang.String |
getDetails()
Returns all the exception details in the String format. |
java.util.ArrayList |
getDetailsList()
Returns all the exception details. |
java.lang.String |
getMessage()
Returns the Message of the Exception dialog. |
java.lang.String |
getTitle()
Returns the title of the Exception dialog. |
boolean |
hasDetails()
Returns true if any other exception details have been added into this exception. |
void |
setMessage(java.lang.String message)
Set the Message for the Exception dialog. |
void |
setTitle(java.lang.String title)
Set the title for the Exception dialog. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RTAException()
public RTAException(java.lang.String message)
message - exception message
public RTAException(java.lang.String title,
java.lang.String message)
title - title of the exception dialog, which pops up when exception occursmessage - exception message| Method Detail |
public void addDetails(java.lang.String errMessage)
errMessage - Message to be shown in the error dialog.
public void addDetails(java.lang.String fieldName,
java.lang.String errMessage)
fieldName - name of the erroneous attribute/field to be shown in the error dialog.errMessage - Message to be shown in the error dialog.
public void addDetails(java.lang.String format,
java.lang.String[] values)
format - short description about the exception(i18ned value of this will be shown in the exception dialog)values[] - list of errorMessagespublic void addDetails(RTAException rex)
rex - exception to be shown in the error dialog.public void setTitle(java.lang.String title)
title - Title of the error dialog which will show the error details.public void setMessage(java.lang.String message)
message - error message to be shown in the error dialogpublic java.lang.String getTitle()
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic boolean hasDetails()
public java.lang.String getDetails()
public java.util.ArrayList getDetailsList()
public java.lang.String toString()
toString in class java.lang.Throwable
|
AdventNet Web NMS 4 DMS API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||