pub enum CoreError {
InvalidChoiceCount {
count: usize,
},
InvalidScoreLevelCount {
count: usize,
},
InvalidCriteriaType {
question_type: String,
expected: &'static str,
actual: &'static str,
},
MissingCriteria {
question_type: String,
},
EmptyQuestions,
MathError {
message: String,
},
SerializationError {
message: String,
},
InvalidGatingConfig {
message: String,
},
}Expand description
コアモジュールで発生するエラーの列挙型。
Variants§
InvalidChoiceCount
選択肢の数が制限範囲外である場合のエラー(Choice 型は 1〜255 個)。
InvalidScoreLevelCount
スコア評価尺度の段階数が範囲外である場合のエラー(Score 型は 2〜10 段階)。
InvalidCriteriaType
質問タイプに対する評価基準(Criteria)の形式が不一致である場合のエラー。
Fields
MissingCriteria
必須の評価基準(Criteria)が欠落している場合のエラー。
EmptyQuestions
質問リストが空である場合のエラー。
MathError
確率分布の計算やエントロピー算出における数値計算エラー。
SerializationError
シリアライズまたはデシリアライズ失敗エラー。
InvalidGatingConfig
確信度ゲーティング設定のバリデーションエラー。
Trait Implementations§
Source§impl Error for CoreError
impl Error for CoreError
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()
impl StructuralPartialEq for CoreError
Auto Trait Implementations§
impl Freeze for CoreError
impl RefUnwindSafe for CoreError
impl Send for CoreError
impl Sync for CoreError
impl Unpin for CoreError
impl UnsafeUnpin for CoreError
impl UnwindSafe for CoreError
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