Throw::nocatch

Details

  • This message is generated when Throw is used without an enclosing Catch.
  • Off[message] switches off the message; On[message] switches it on. For example: Off[Throw::nocatch].

Examples

Basic Examples  (1)

An error occurs because Throw is used without an enclosing Catch:

This shows a valid use of Throw and Catch: