//! Error handling utilities for Lindera Node.js bindings.
//!
//! Provides helper functions to convert Rust errors into napi-rs errors
//! that are thrown as JavaScript exceptions.
use Display;
use Status;
/// Converts any displayable error into a napi error.
///
/// # Arguments
///
/// * `err` - Any error type that implements `Display`.
///
/// # Returns
///
/// A `napi::Error` with `GenericFailure` status and the error message.