Error Record Functions
Error record functions provide information about error records. Use error functions to process error records.
For example, you might use error functions in a Stream Selector to pass data to different error handling pipelines based on the type of error that occurred.
Not valid in Data Collector Edge pipelines. Do not use error record functions in Data Collector Edge pipelines.
The expression language provides the following error functions:
- record:errorCode()
- Returns the error code for the error record.
- record:errorCollectorId()
- Returns the ID of the Data Collector that sent the record to error.
- record:errorMessage()
- Returns the error message for the error record.
- record:errorPipeline()
- The name of pipeline that sent the record to error.
- record:errorStackTrace()
- Returns the error stack trace for the error record.
- record:errorStage()
- Returns the instance name of the stage that sent the record to error.
- record:errorStageLabel()
- Returns the user-defined label for the stage that sent the record to error.
- record:errorTime()
- The time the record was sent to error.