feat: update error notes for wfassoc

This commit is contained in:
2026-06-25 13:42:23 +08:00
parent 1a44240f88
commit 880f90211b
8 changed files with 58 additions and 47 deletions

View File

@@ -14,17 +14,17 @@ use wfassoc::highlevel::{Program, Schema};
#[derive(Debug, TeError)]
enum Error {
/// Error when operating Schema.
#[error("{0}")]
#[error("wfassoc error: {0}")]
Schema(#[from] wfassoc::highlevel::SchemaError),
/// Error when parsing Schema into Program.
#[error("{0}")]
#[error("wfassoc error: {0}")]
ParseProgram(#[from] wfassoc::highlevel::ParseProgramError),
/// Error when operating Program.
#[error("{0}")]
#[error("wfassoc error: {0}")]
Program(#[from] wfassoc::highlevel::ProgramError),
/// Error when manipulating with C-style string.
#[error("C-Style string FFI error:{0}")]
#[error("C-Style string FFI error: {0}")]
CStrFfi(#[from] cstr_ffi::Error),
/// Error when manipulating with object pool.
#[error("object pool error: {0}")]