Functions to panic or revert with a given error code.
Checks if the given condition is true and if not, logs value and reverts.
condition
true
value
Will either panic or revert with a given number depending on the context.