Catch


The Catch node stores exceptions thrown by nodes and outputs the exception messages for processing by subsequent nodes.

Node Type


Logic.

Input and Output Ability


This node has 0 entry points and multiple exit points.

Node Properties


../../_images/catch.png


Name

The name for this node.


Description

The description for this node.

Limitations


  • Each flow can only have 1 Catch node.
  • Since the maximum storage for each node msg is 8KB, only the first 8KB will be saved. The display of the msg may be incomplete if the exception that caught by Catch node exceeds 8KB. It is recommended to solve the storage problem if required.
    • Download data to local: Use File to write the exceptions to a new file or an existing file and read it to download to local.
    • Send data to Recipient: Use Email or SMS to send the exceptions to the specified recipients.

Samples

Input Sample


{
    "MetaData": {
        "CamelRedelivered": "false",
        "CamelRedeliveryCounter": "0"
    },
    "Body": {
        "assetId": "abc",
        "timestamp": 24214324324,
        "measurepoints":{
            "temperature": 22.4,
            "humidity": 78
        }
    }
}

Output Sample


{
    "MetaData": {
        "CamelRedelivered": "false",
        "CamelRedeliveryCounter": "0",
        "ExceptionMessage": "File path is null"
    },
    "Body": {
        "assetId": "abc",
        "timestamp": 24214324324,
        "measurepoints":{
            "temperature": 22.4,
            "humidity": 78
        }
    }
}