user_error()
function user_error(string $message, int $error_level = 1024): bool
Alias of trigger_error.
Parameters:
$message(string)$error_level(int), default1024, optional
Returns: bool
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported through a declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/core/user_error.rs).
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how user_error is implemented in the compiler, see the internals page.