Class actuate.viewer.ViewerException
Description
A container for an exception. ViewerException provides an object to pass to a handler when the user-defined ON_EXCEPTION event occurs. It contains a reference to the element that generated the exception.
Constructor
The ViewerException object is constructed when an ON_EXCEPTION event occurs. The exceptions are divided into three types, which determine the contents of the Exception object. These types are:
*
*
*
Function summary
Table 4-56 lists actuate.viewer.ViewerException functions.
actuate.viewer.ViewerException.getElement
Syntax
object ViewerException.getElement( )
Returns an instance of the element that caused the exception, if applicable. The instance can be an object of one of following types:
*
*
*
*
*
To determine the object type, use the Object.getType( ) function. The type strings for the above objects are "Chart", "Data", "Label", "Table", or "Text", respectively.
Returns
Object. An instance of the element that generated the exception.
Example
This example displays the type of element that generated the exception in an alert box:
alert("Exception in " + vException.getElement.getType( ));
actuate.viewer.ViewerException.getErrorMessage
Syntax
string ViewerException.getErrorMessage( )
Returns the error message for the exception.
Returns
String. A server error message.
Example
This example displays the server error code in an alert box:
alert("Server error message: " + vException.getErrorMessage( ));
 

Additional Links:

Copyright Actuate Corporation 2012