Class actuate.viewer.ViewerException
The ViewerException class represents a viewer exception.
Member of: actuate.viewer.
Constructor Attributes | Constructor Name and Description |
---|---|
The ViewerException class represents a viewer exception.
|
Field Attributes | Field Name and Description |
---|---|
<static> <constant> |
Exception type for client side error
|
<static> <constant> |
Exception type for server error.
|
<static> <constant> |
Exception type for api usage error
|
Method Attributes | Method Name and Description |
---|---|
Return description
- soap string for ERR_SERVER,
- fileName+number+stack for ERR_CLIENT(firefox only),
- And as for ERR_USER anything set when creating this object
|
|
Returns an instance of the currently selected element.
|
|
Return error code for ERR_SERVER
|
|
Returns the exception message.
|
|
Return short message about exception
|
|
getType()
Return the type of exception error
|
|
isExceptionType(exceptionType)
Returns whether this exception instance is of the given type.
|
Class Detail
actuate.viewer.ViewerException()
The ViewerException class represents a viewer exception.
Field Detail
<static> <constant>
ERR_CLIENT
Exception type for client side error
<static> <constant>
ERR_SERVER
Exception type for server error.
<static> <constant>
ERR_USAGE
Exception type for api usage error
Method Detail
{String} getDescription()
Return description
- soap string for ERR_SERVER,
- fileName+number+stack for ERR_CLIENT(firefox only),
- And as for ERR_USER anything set when creating this object
- Returns:
- {String} detail description of error
{Object} getElement()
Returns an instance of the currently selected element. The instance can be one of the following objects:
- actuate.report.Chart
- actuate.report.DataItem
- actuate.report.Label
- actuate.report.Table
- actuate.report.TextItem
alert("Exception in " + vException.getElement.getType( ));
- Returns:
- {Object} report element for which the exception occurred.
{String} getErrCode()
Return error code for ERR_SERVER
- Returns:
- {String} error code for ERR_SERVER
{String} getErrorMessage()
Returns the exception message. This example displays the server error code in an alert box:
alert("Server error message: " + vException.getErrorMessage( ));
- Returns:
- {String} exception message
{String} getMessage()
Return short message about exception
- Returns:
- {String} errMsg short message about the exception
{String} getType()
Return the type of exception error
- Returns:
- {String} errType Type of exception
{boolean} isExceptionType(exceptionType)
Returns whether this exception instance is of the given type.
- Parameters:
- {Object} exceptionType
- exception type as string, or exception class. Examples: "actuate.viewer.ViewerException" or actuate.viewer.ViewerException
- Returns:
- {boolean} true if the exception is of the given type