Function syntax_error

Source
pub fn syntax_error() -> ExceptionClass
Available on crate feature old-api only.
Expand description

Return Ruby’s SyntaxError class.

§Panics

Panics if called from a non-Ruby thread. See Ruby::exception_syntax_error for the non-panicking version.