Skip to main content

Module stylex_error

Module stylex_error 

Source
Expand description

Structured error types and formatting for StyleX diagnostics.

Provides StyleXError and helper functions/macros that produce clean, branded [StyleX] <message> output on both stderr and NAPI boundaries.

Structs§

StyleXError
Structured error for all user-facing StyleX diagnostics.
SuppressPanicStderr
RAII guard that suppresses panic-hook stderr output for its lifetime.

Constants§

SUPPRESS_PANIC_STDERR 🔒

Functions§

format_panic_message
Extract a plain-text error message from a caught panic payload.
is_panic_stderr_suppressed
Returns true while a SuppressPanicStderr guard is alive on this thread.
strip_ansi 🔒
Strip ANSI escape sequences from a string.