ThrowError

KCM Core forces an error.

The command ThrowError puts KCM Core in the error state. The current request terminates unless an earlier OnError command has defined an error handler.

You can use the command ThrowError at the end of an error handler to report the final error after cleanup.

Syntax

ThrowError
   Message(<text>);

The Message is logged by KCM Core as an informational message. The command ThrowError is not logged as an error.

Parameters

Message: Required. The message is sent back to a synchronous client. If this parameter is not specified, KCM Core sends back the last real error message.