pub enum ServerError {
BadRequest(String),
ValidationError(CoreError),
PayloadTooLarge(String),
Runtime(RuntimeError),
Dag(DagError),
GuardrailViolation(String),
StateCacheMiss(String),
Internal(String),
}Expand description
サーバー内部で発生する各種エラーの統括型。
Variants§
BadRequest(String)
不正なリクエスト構文またはパラメータ。
ValidationError(CoreError)
Core スキーマの整合性検証エラー。
PayloadTooLarge(String)
質問数またはペイロードサイズの上限超過。
Runtime(RuntimeError)
ランタイム推論エンジン障害。
Dag(DagError)
DAG 実行エラー。
GuardrailViolation(String)
ガードレール違反 (プロンプトインジェクション、禁止語、ハルシネーション等)。
StateCacheMiss(String)
State キャッシュミス (State-Offloading で State が空だがキャッシュが存在しない)。
Internal(String)
サーバー内部の不整合・障害。
Trait Implementations§
Source§impl Debug for ServerError
impl Debug for ServerError
Source§impl Display for ServerError
impl Display for ServerError
Source§impl Error for ServerError
impl Error for ServerError
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<CoreError> for ServerError
impl From<CoreError> for ServerError
Source§impl From<DagError> for ServerError
impl From<DagError> for ServerError
Source§impl From<RuntimeError> for ServerError
impl From<RuntimeError> for ServerError
Source§fn from(source: RuntimeError) -> Self
fn from(source: RuntimeError) -> Self
Converts to this type from the input type.
Source§impl IntoResponse for ServerError
impl IntoResponse for ServerError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl !RefUnwindSafe for ServerError
impl !UnwindSafe for ServerError
impl Freeze for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl UnsafeUnpin for ServerError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more