Class Throw
java.lang.Object
ortus.boxlang.runtime.components.Component
ortus.boxlang.runtime.components.system.Throw
@BoxComponent(description="Throw custom exceptions with messages and error codes")
public class Throw
extends Component
-
Nested Class Summary
Nested classes/interfaces inherited from class ortus.boxlang.runtime.components.Component
Component.BodyResult, Component.ComponentBody -
Field Summary
Fields inherited from class ortus.boxlang.runtime.components.Component
componentService, declaredAttributes, DEFAULT_RETURN, functionService, interceptorService, logger, name, runtime -
Constructor Summary
ConstructorsConstructorDescriptionThrow()-------------------------------------------------------------------------- Constructor(s) -------------------------------------------------------------------------- -
Method Summary
Modifier and TypeMethodDescription_invoke(IBoxContext context, IStruct attributes, Component.ComponentBody body, IStruct executionState) Throws a developer-specified exception, which can be caught with a catch block.Methods inherited from class ortus.boxlang.runtime.components.Component
announce, getDeclaredAttributes, getName, invoke, processBody, processBody, setName, validateAttributes
-
Constructor Details
-
Throw
public Throw()-------------------------------------------------------------------------- Constructor(s) --------------------------------------------------------------------------
-
-
Method Details
-
_invoke
public Component.BodyResult _invoke(IBoxContext context, IStruct attributes, Component.ComponentBody body, IStruct executionState) Throws a developer-specified exception, which can be caught with a catch block.
-