[][src]Struct graph_rs_sdk::error::GraphError

pub struct GraphError {
    pub headers: Option<GraphHeaders>,
    pub error_info: String,
    pub error_type: ErrorType,
    pub code: u16,
    pub error_message: ErrorMessage,
}

Fields

headers: Option<GraphHeaders>error_info: Stringerror_type: ErrorTypecode: u16error_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]

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]

impl Debug for GraphError[src]

impl Default for GraphError[src]

impl<'de> Deserialize<'de> for GraphError[src]

impl Display for GraphError[src]

impl Eq for GraphError[src]

impl Error for GraphError[src]

impl From<GraphError> for GraphFailure[src]

impl PartialEq<GraphError> for GraphError[src]

impl Serialize for GraphError[src]

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.

impl<'_> TryFrom<&'_ Response> for GraphError[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Response> for GraphError[src]

type Error = Error

The type returned in the event of a conversion 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.

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsErrorSource for T where
    T: 'static + Error

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.