Newer Version Available

This content describes an older version of this product. View Latest

Apex Unexpected Exception Event Type

The Apex Unexpected Exception event type captures information about unexpected exceptions in Apex code execution. This event type is available in the EventLogFile object in API version 45.0 and later.

For details about event monitoring, see the Trailhead Event Monitoring module or REST API Developer���s Guide.

Fields

Field Details
EVENT_TYPE
Type
String
Description
The type of event. The value is always ApexUnexpectedException.
EXCEPTION_MESSAGE
Type
Text
Description
The type of exception.
Example
Divide by 0
EXCEPTION_TYPE
Type
String
Description
The type of exception.
Example
System.MathException
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain one or more events. Each event in a given transaction has the same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
STACK_TRACE
Type
Text
Description
The stack trace for the exception.

If the exception is thrown from a managed package, STACK_TRACE is omitted.

Note

Example
1Class.OpportunityUtility.insert: line 22, column 1
2AnonymousBlock: line 1, column 1
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
DateTime
Description
The access time of Salesforce services in ISO8601-compatible format (YYYY-MM-DDTHH:MM:SS.sssZ).
Example
2015-07-27T11:32:59.555Z