NodeExecutionException

class NodeExecutionException(val nodeName: String, cause: Throwable, val attempts: Int = 1) : TelarException

A node's action threw an exception. The original exception is available as cause.

Every exception is wrapped, also a TelarException: when a node runs another graph or calls a model of an integration module, cause is the exception of that graph or model. So is what a browser throws in place of an exception, such as the Error of a request that got no response. An error of the program or of its machine is not wrapped: a subclass of Error, such as OutOfMemoryError, AssertionError or the NotImplementedError of TODO().

Cancellation of the run itself is never wrapped: it propagates as a CancellationException. A CancellationException that a node raises while the run is still active, such as an expired withTimeout inside the node, is a failure of that node and is wrapped like any other.

Constructors

Link copied to clipboard
constructor(nodeName: String, cause: Throwable, attempts: Int = 1)

Properties

Link copied to clipboard

how often the node ran before the run failed. More than 1 only for a node with a Retry.

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
expect open val message: String?
Link copied to clipboard