//! 非方法类型异常 —— 对应 Java `freemarker.core.NonMethodException`
//! (UnexpectedTypeException 子类;expected 描述 = "method")
use crate::error::TemplateError;
/// Java `NonMethodException(String description)` 的 Rust 入口
#[allow(dead_code)]
pub(crate) fn new(actual: impl Into<String>) -> TemplateError {
TemplateError::type_mismatch("method", actual)
}