Function magnus::exception::encoding_error

source ·
pub fn encoding_error() -> ExceptionClass
Expand description

Return Ruby’s EncodingError class.

§Panics

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