Public declaration syntax from forge-rs/crates/forge-agent402/src/error.rs Original source SHA-256: 05559050bcf2cfc6e9912adc1062412243aa0e752fbb64c652538de76db7e554 Function bodies and constant values are omitted. This is not the complete implementation. Source line 7 #[derive(Debug, Error)] pub enum Agent402Error { /// OpenAgent challenge-response authentication failed. #[error("authentication failed: {reason}")] AuthFailed { reason: String }, /// x402 payment required but not provided or invalid. #[error("payment failed: {reason}")] PaymentFailed { reason: String }, /// Session token expired or invalid. #[error("session expired")] SessionExpired, /// Network or transport error. #[error("network error: {0}")] Network(String), /// Configuration error. #[error("configuration error: {0}")] Config(String), /// Internal error. #[error("internal error: {0}")] Internal(String), }