Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

On this page:

Table of Contents

Even though we've tried to keep the language as user-friendly as possible by returning empty values rather than throwing exceptions where possible, there are still cases when exceptions need to be thrown.

Additionally, users may want to throw the errors themselves (e.g. for instance from common user-defined functions) and handle error results differently depending on context.

...

  1. Java Exceptions - thrown from the java code running behind SIL
  2. SIL objects thrown using throw (explained below)

Throwing SIL Objects

The general syntax for throwing an exception from SIL is:

...