Salesforce

JavaExceptionOccurred (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

JavaExceptionOccurred

Informs you that an error occurred during the last Java operation.

Syntax:

JavaExceptionOccurred()

Parameters:

None

Returns:

True or False. It returns True only if the last Java usage threw an exception.

Example:

Update A with JavaException()

Note:

Once an exception is raised, the JavaExceptionOccurred() function returns True until the JavaException() function is evaluated.

In a Block While operation if you use expression NOT(JavaExceptionOccurred()), it creates a problem because it returns only False even if the last Java operation caused an exception. If an earlier operation causes an exception, it could result in an infinite loop.

This function is not available in Web Client tasks.

See also:

JavaException

Java Exceptions

Reference
Attachment 
Attachment