Actuate JavaScript API classes : Class actuate.ConnectionException

Class actuate.ConnectionException

Description

A container for a connection exception. ConnectionException provides an object to pass to a error callback function when an exception occurs.

Constructor

The ConnectionException object is constructed when there is a connection issue. For example, actuate.ConnectionException is created when a wrong URL is given in actuate.initialize( ) or actuate.authenticate( ), or if the server was unreachable.

Function summary

Table 4-4 describes actuate.ConnectionException functions

actuate.ConnectionException.getUrl

Syntax

string ConnectionException.getUrl( )

Returns the complete URL sent with the connection request.

Returns

String. The complete URL that was sent with the connection request.

Example

This example calls ConnectionException.getUrl( ) to return the complete URL from a Connection request.

alert ("Connection Error at " + ConnectionException.getUrl( ));

(c) Copyright Actuate Corporation 2011