Salesforce

JExceptionText (Magic xpa 2.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

JExceptionText (Magic xpa 2.x)

Returns a text image from the last exception and an optional backtrace of the stack. This function refers to the last exception thrown during the last J* or EJB* function.

Syntax:

JExceptionText(brief/[complete])

Returns:

An Alpha string. One of the following messages is returned:

  • JVM could not be loaded

  • Class not found

  • Method not found

  • Failure to convert parameters to JNI

  • Failure to convert return value from JNI

Example:

JExceptionText('T'LOG) – getMessage + stack trace

JExceptionText('F'LOG) – getMessage only

Note:

Magic xpa can call the JExceptionText function repeatedly until another function is called.

See also:

Java Functions

The Online Samples project (program JV02)

Reference
Attachment 
Attachment