"添加前端模板和运行代码模块"
This commit is contained in:
10
qiming-run_code_rmcp/src/app_error.rs
Normal file
10
qiming-run_code_rmcp/src/app_error.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
use thiserror::Error;
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
pub enum AppError {
|
||||
#[error("Failed to create temporary file: {0}")]
|
||||
IoError(#[from] std::io::Error),
|
||||
|
||||
#[error("Failed to parse JSON: {0}")]
|
||||
JsonError(#[from] serde_json::Error),
|
||||
}
|
||||
Reference in New Issue
Block a user