Package ortus.boxlang.runtime.operators
Class Assert
java.lang.Object
ortus.boxlang.runtime.operators.Assert
- All Implemented Interfaces:
IOperator
Performs an assertion check on an incoming expression value.
It returns
true if it passes the assertion, else it throws an AssertionError
assert "hello" contains "he", asssert expression -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Assert
public Assert()
-
-
Method Details
-
invoke
- Parameters:
result- The result of the boolean expression- Returns:
- true if the boolean result is true, else an exception
- Throws:
AssertionError- if the result is false or null
-