Central Error Stream
Resource Overview
A Central Error Stream resource can be declared in your stack to emit data that identifies the cause, location, and any specific details of an error when it occurs.
Only one Central Error Stream can be added to a stack at a time.
Event Subscription
Event subscription wires (solid line) connect two or more resources and are required to accomplish certain tasks or improve performance within an application's flow.
The following resources can be subscribed to a Central Error Stream:
- Function
Configurable Properties
Error Message Format
When an error occurs the error object is emitted from the Error as the message. The object contains the following properties:
Field | Type | Description |
---|---|---|
class | string | Class of the error. Example: IllegalArgumentException |
message | string | Error message. Example: 'foo' is an invalid value for argument 'bar' |
stack | string | Error stack trace, where provided. |
data | Object | Extra error data, where provided. |
stackery.node.id | string | ID of the resource that generated the error. Example: a83bd26f |
stackery.node.name | string | Name of the resource that generated the error, if the name exists. Example: My Function |
stackery.runtime | string | Runtime of generating Function, where available. Example: python |
stackery.requestId | string | Request ID that generated the error, if available. Example: 6605b081-6f04-11e6-97ac-c34deb0b3dd9 |
stackery.message | string | The message passed into the function at invocation time, if available. Example: {"id": 5, "action": "PUT"} |