[][src]Struct conjure_error::SerializableError

pub struct SerializableError { /* fields omitted */ }

The JSON-serializable representation of an error.

Methods

impl SerializableError[src]

pub fn builder() -> Builder[src]

Returns a new builder.

pub fn error_code(&self) -> &ErrorCode[src]

The broad category of the error.

When transmitted over HTTP, this determines the response's status code.

pub fn error_name(&self) -> &str[src]

The error's name.

The name is made up of a namespace and more specific error name, separated by a :.

pub fn error_instance_id(&self) -> Uuid[src]

A unique identifier for this error instance.

This can be used to correlate reporting about the error as it transfers between components of a distributed system.

pub fn parameters(&self) -> &BTreeMap<String, String>[src]

Parameters providing more information about the error.

Trait Implementations

impl ErrorType for SerializableError[src]

impl From<SerializableError> for Builder[src]

impl Clone for SerializableError[src]

impl Eq for SerializableError[src]

impl Ord for SerializableError[src]

impl PartialEq<SerializableError> for SerializableError[src]

impl PartialOrd<SerializableError> for SerializableError[src]

impl Debug for SerializableError[src]

impl Hash for SerializableError[src]

impl StructuralPartialEq for SerializableError[src]

impl StructuralEq for SerializableError[src]

impl Serialize for SerializableError[src]

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

Auto Trait Implementations

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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

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