InterSystems FAQ rubric
If you want to raise an arbitrary custom error in a TRY block, you can pass an exception with a throw
as follows. In the following example, a custom error is raised if Stcount
is less than 1.
InterSystems ObjectScript is a scripting language to operate with data using any data model of InterSystems Data Platform (Objects, Relational, Key-Value, Document, Globals) and to develop business logic for serverside applications on InterSystems Data Platform.