Class actuate.AuthenticationException
Description
AuthenticationException provides an object to pass to a error callback function when an authentication exception occurs. The AuthenticationException object contains references to the URL, the UserId, and the request options used in the authentication attempt.
Constructor
The AuthenticationException object is constructed when actuate.Authenticate( ) fails.
Function summary
Table 44‑3 lists actuate.AuthenticationException functions.
Table 44‑3 actuate.AuthenticationException functions 
Function
Description
Returns the web service URL
Returns the request options
Returns the user ID
getIportalUrl
Syntax
string AuthenticationException.getIportalUrl( )
Returns the Deployment Kit for BIRT reports or iPortal URL.
Returns
String.
Example
The following sample code retrieves the URL from an exception:
return AuthenticationException.getIportalUrl( );
getRequestOptions
Syntax
actuate.RequestOptions AuthenticationException.getRequestOptions( )
Returns an instance of the RequestOptions that modified the URL that caused the exception, if applicable.
Returns
actuate.RequestOptions object. A RequestOptions object defines URL parameters sent in the authentication request, such as the iHub URL, volume, or repository type. The RequestOptions object can also add custom parameters to the URL.
Example
The following sample code retrieves the RequestOptions object that caused the exception:
var exceptReqOpts = AuthenticationException.getRequestOptions( );
getUserId
Syntax
string AuthenticationException.getUserId( )
Returns the UserId used in the failed authentication attempt.
Returns
String.
Example
The following sample code retrieves the UserId from an exception:
return AuthenticationException.getUserId( );