MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / ApiError

Enum ApiError

crates/opencode-server/src/error.rs:9–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8#[derive(Debug, thiserror::Error)]
9pub enum ApiError {
10 #[error("Session not found: {0}")]
11 SessionNotFound(String),
12
13 #[error("Not found: {0}")]
14 NotFound(String),
15
16 #[error("Bad request: {0}")]
17 BadRequest(String),
18
19 #[error("Provider error: {0}")]
20 ProviderError(String),
21
22 #[error("Invalid request: {0}")]
23 InvalidRequest(String),
24
25 #[error("Internal error: {0}")]
26 InternalError(String),
27}
28
29impl IntoResponse for ApiError {
30 fn into_response(self) -> Response {

Callers 15

chatMethod · 0.50
chat_streamMethod · 0.50
chatMethod · 0.50
chat_streamMethod · 0.50
chatMethod · 0.50
chat_streamMethod · 0.50
chatMethod · 0.50
chat_streamMethod · 0.50
chatMethod · 0.50
chat_streamMethod · 0.50
chat_legacyMethod · 0.50
chat_stream_legacyMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected