#[non_exhaustive]pub enum OracleMcpError {
Oracle(String),
ObjectNotFound {
name: String,
fuzzy_matches: Vec<String>,
},
InsufficientPrivilege(String),
ForbiddenStatement(String),
LeaseRequired(String),
OperatingLevelTooLow(String),
ChallengeRequired(String),
RuntimeStateRequired(String),
Busy {
retry_after_ms: u64,
},
InvalidArguments(String),
PolicyDenied(String),
Internal(String),
}Expand description
Library-side error type for ?-propagation across the oraclemcp core.
Distinct from ErrorEnvelope: this is the internal Result error;
OracleMcpError::into_envelope renders the agent-facing shape at the
tool boundary.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Oracle(String)
A raw Oracle driver/DB error (its ORA- code is parsed on conversion).
ObjectNotFound
A referenced object was not found; carries near-miss candidates.
Fields
InsufficientPrivilege(String)
The connected user lacks a required privilege.
ForbiddenStatement(String)
The statement failed the fail-closed classifier.
LeaseRequired(String)
A stateful operation needs a lease.
OperatingLevelTooLow(String)
Required operating level exceeds the current level.
ChallengeRequired(String)
A human step-up confirmation is required.
RuntimeStateRequired(String)
Live runtime state (e.g. an Oracle connection) is required.
Busy
Admission control rejected the call.
InvalidArguments(String)
Invalid request arguments.
PolicyDenied(String)
A policy denied the call.
Internal(String)
An internal error.
Implementations§
Source§impl OracleMcpError
impl OracleMcpError
Sourcepub fn into_envelope(self) -> ErrorEnvelope
pub fn into_envelope(self) -> ErrorEnvelope
Render the agent-facing ErrorEnvelope.
Trait Implementations§
Source§impl Debug for OracleMcpError
impl Debug for OracleMcpError
Source§impl Display for OracleMcpError
impl Display for OracleMcpError
Source§impl Error for OracleMcpError
impl Error for OracleMcpError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()