[−][src]Struct graph_rs_sdk::error::GraphError
Fields
headers: Option<GraphHeaders>
error_info: String
error_type: ErrorType
code: u16
error_message: ErrorMessage
Implementations
impl GraphError
[src]
pub fn new(
headers: Option<GraphHeaders>,
error_info: &str,
error_type: ErrorType,
code: u16,
error_message: ErrorMessage
) -> GraphError
[src]
headers: Option<GraphHeaders>,
error_info: &str,
error_type: ErrorType,
code: u16,
error_message: ErrorMessage
) -> GraphError
pub fn is_error(status: u16) -> bool
[src]
pub fn set_headers(&mut self, headers: GraphHeaders)
[src]
pub fn set_error(&mut self, code: u16) -> Result<(), GraphError>
[src]
pub fn set_error_message(&mut self, error_message: ErrorMessage)
[src]
pub fn try_set_error_message(&mut self, msg: &str)
[src]
pub fn message(&self) -> Option<String>
[src]
pub fn code_property(&self) -> Option<String>
[src]
pub fn inner_error(&self) -> Option<&InnerError>
[src]
pub fn request_id(&self) -> Option<String>
[src]
pub fn date(&self) -> Option<String>
[src]
pub fn detailed_error_code(&self) -> Option<String>
[src]
Trait Implementations
impl Clone for GraphError
[src]
pub fn clone(&self) -> GraphError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for GraphError
[src]
impl Default for GraphError
[src]
pub fn default() -> GraphError
[src]
impl<'de> Deserialize<'de> for GraphError
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<GraphError, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<GraphError, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Display for GraphError
[src]
impl Eq for GraphError
[src]
impl Error for GraphError
[src]
pub fn source(&'a self) -> Option<&'a (dyn Error + 'static)>
[src]
pub fn description(&self) -> &str
[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<GraphError> for GraphFailure
[src]
pub fn from(err: GraphError) -> GraphFailure
[src]
impl PartialEq<GraphError> for GraphError
[src]
pub fn eq(&self, other: &GraphError) -> bool
[src]
pub fn ne(&self, other: &GraphError) -> bool
[src]
impl Serialize for GraphError
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl StructuralEq for GraphError
[src]
impl StructuralPartialEq for GraphError
[src]
impl<'_> TryFrom<&'_ Response> for GraphError
[src]
type Error = Error
The type returned in the event of a conversion error.
pub fn try_from(
value: &Response
) -> Result<GraphError, <GraphError as TryFrom<&'_ Response>>::Error>
[src]
value: &Response
) -> Result<GraphError, <GraphError as TryFrom<&'_ Response>>::Error>
impl<'_> TryFrom<&'_ Response> for GraphError
[src]
type Error = Error
The type returned in the event of a conversion error.
pub fn try_from(
value: &Response
) -> Result<GraphError, <GraphError as TryFrom<&'_ Response>>::Error>
[src]
value: &Response
) -> Result<GraphError, <GraphError as TryFrom<&'_ Response>>::Error>
impl TryFrom<Response> for GraphError
[src]
type Error = Error
The type returned in the event of a conversion error.
pub fn try_from(
value: Response
) -> Result<GraphError, <GraphError as TryFrom<Response>>::Error>
[src]
value: Response
) -> Result<GraphError, <GraphError as TryFrom<Response>>::Error>
impl TryFrom<u16> for GraphError
[src]
Returns the matching GraphError for a u16. This method will panic with a NoneError if there is no corresponding u16 to match. Only use this method if you are sure the u16 given will match or you if the method results with a panic.
Auto Trait Implementations
impl RefUnwindSafe for GraphError
[src]
impl Send for GraphError
[src]
impl Sync for GraphError
[src]
impl Unpin for GraphError
[src]
impl UnwindSafe for GraphError
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsErrorSource for T where
T: 'static + Error,
T: 'static + Error,
pub fn as_error_source(&self) -> &(dyn Error + 'static)
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,