CREATE ERROR INPUT STREAM
An Error Input Stream is a special purpose stream with a predefined schema for a StreamBase error tuple. The Error Input Stream serves as an application-level catch mechanism for unhandled runtime errors that occur anywhere in the containing application or module.
In StreamSQL, use the CREATE INPUT STREAM statement to define an Error Input Stream for the current application or module. Only one Error Input Stream can be added per application or module.
See Using Error Ports and Error Streams for a general introduction to Error Streams.