#[non_exhaustive]pub enum EvalError {
IoError(String),
ParseError(String),
EmbeddingError(String),
PredictorError(String),
}Expand description
评测错误
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IoError(String)
底层 IO 错误(如文件读取失败)。
ParseError(String)
数据解析错误(如 JSON/JSONL 解析失败)。
EmbeddingError(String)
嵌入(embedding)计算错误。
PredictorError(String)
预测器(predictor)执行错误。
Trait Implementations§
Source§impl Error for EvalError
impl Error for EvalError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<StructuredJudgeError> for EvalError
P2-6: 共享裁判内核(lc-core::judge)的错误映射进评测错误域,
让 structured_call(...).await? 在 Result<_, EvalError> 上下文里直接可用。
impl From<StructuredJudgeError> for EvalError
P2-6: 共享裁判内核(lc-core::judge)的错误映射进评测错误域,
让 structured_call(...).await? 在 Result<_, EvalError> 上下文里直接可用。
Source§fn from(e: StructuredJudgeError) -> Self
fn from(e: StructuredJudgeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EvalError
impl RefUnwindSafe for EvalError
impl Send for EvalError
impl Sync for EvalError
impl Unpin for EvalError
impl UnsafeUnpin for EvalError
impl UnwindSafe for EvalError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more