failFunction in std

WARNING: This function is experimental and may change or be removed.

Stop KCL evaluation with a user-defined error.

Use fail when evaluation cannot continue and the caller should receive a specific error message. fail never returns a value.

Arguments

NameTypeDescriptionRequired
msgstringMessage reported to the caller.Yes

Returns

never - The uninhabited type of computations that never complete normally.

Examples