macro_rules! errorf {
($kind:expr, $($arg:tt)*) => { ... };
}Expand description
返回带格式化消息的分类错误:
errs::errorf!(errs::Kind::NotFound, "user {} not found", name)
macro_rules! errorf {
($kind:expr, $($arg:tt)*) => { ... };
}返回带格式化消息的分类错误:
errs::errorf!(errs::Kind::NotFound, "user {} not found", name)