Skip to main content

soap_client/
error.rs

1//! Error types for the SOAP client
2
3use thiserror::Error;
4
5/// Errors that can occur during SOAP communication
6#[derive(Debug, Error)]
7pub enum SoapError {
8    /// Network or HTTP communication error
9    #[error("Network/HTTP error: {0}")]
10    Network(String),
11
12    /// XML parsing error
13    #[error("XML parsing error: {0}")]
14    Parse(String),
15
16    /// SOAP fault returned by the server
17    #[error("SOAP fault: error code {0}")]
18    Fault(u16),
19}