validateNotNull
Validates that the provided value is not null. If the value is null, a ToolException.ValidationFailure exception is thrown with the provided error message.
Return
The same non-null value that was provided as input.
Parameters
value
The value to be validated as not null.
message
A lambda that provides the error message in case the value is null.
Throws
if the value is null.