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 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:
Error Message Format
When an error occurs the error object is emitted from the Error as the message. The object contains the following properties:
|class||string||Class of the error. Example: |
|message||string||Error message. Example: |
|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: |
|stackery.node.name||string||Name of the resource that generated the error, if the name exists. Example: |
|stackery.runtime||string||Runtime of generating Function, where available. Example: |
|stackery.requestId||string||Request ID that generated the error, if available. Example: |
|stackery.message||string||The message passed into the function at invocation time, if available. Example: |