MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / api_error_with_status

Method api_error_with_status

crates/opencode-provider/src/provider.rs:133–138  ·  view source on GitHub ↗
(message: impl Into<String>, status_code: u16)

Source from the content-addressed store, hash-verified

131
132impl ProviderError {
133 pub fn api_error_with_status(message: impl Into<String>, status_code: u16) -> Self {
134 ProviderError::ApiErrorWithStatus {
135 message: message.into(),
136 status_code,
137 }
138 }
139
140 pub fn context_overflow(message: impl Into<String>) -> Self {
141 ProviderError::ContextOverflow(message.into())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected