pub enum PhoneServiceError {
Xml(PhoneXmlError),
InvalidUtf8,
InvalidPercentEncoding,
ControlCharacter,
TooManyRouteSegments {
actual: usize,
maximum: usize,
},
TooManyValues {
actual: usize,
maximum: usize,
},
EmptyParameterName,
EmptyRouteComponent,
ComponentTooLong {
kind: &'static str,
actual: usize,
maximum: usize,
},
}Expand description
Failures while validating or decoding an application payload.
Variants§
Xml(PhoneXmlError)
A structured XML payload was malformed or violated its schema bounds.
InvalidUtf8
InvalidPercentEncoding
ControlCharacter
TooManyRouteSegments
The route exceeded MAX_PHONE_SERVICE_ROUTE_SEGMENTS.
TooManyValues
The query exceeded MAX_PHONE_SERVICE_SUBMITTED_VALUES.
EmptyParameterName
EmptyRouteComponent
ComponentTooLong
A decoded route, name, or value exceeded its corresponding byte limit.
Trait Implementations§
Source§impl Debug for PhoneServiceError
impl Debug for PhoneServiceError
Source§impl Display for PhoneServiceError
impl Display for PhoneServiceError
Source§impl Error for PhoneServiceError
impl Error for PhoneServiceError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<PhoneXmlError> for PhoneServiceError
impl From<PhoneXmlError> for PhoneServiceError
Source§fn from(source: PhoneXmlError) -> Self
fn from(source: PhoneXmlError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PhoneServiceError
impl !UnwindSafe for PhoneServiceError
impl Freeze for PhoneServiceError
impl Send for PhoneServiceError
impl Sync for PhoneServiceError
impl Unpin for PhoneServiceError
impl UnsafeUnpin for PhoneServiceError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more