[][src]Enum paperclip::PaperClipError

pub enum PaperClipError {
    Validation(ValidationError),
    InvalidCodegenDirectory,
    UnsupportedOpenAPIVersion,
    RelativePathNotUnique(String),
    MissingParametersInPath(StringHashSet<String>),
    InvalidHost(StringParseError),
    InvalidBasePathURL(StringParseError),
    MissingArrayItem(Option<String>),
    InvalidDefinitionName,
    InvalidDefinitionPath(PathBuf),
    UnsupportedParameterDefinition(StringString),
    UnknownParameterType(StringString),
    Io(Error),
    Json(Error),
    Yaml(Error),
    Templating(Error),
}

Global error which encapsulates all related errors.

Variants

Validation(ValidationError)

Error encountered during spec validation.

InvalidCodegenDirectory

The given directory cannot be used for generating code.

UnsupportedOpenAPIVersion

Currently, we only support OpenAPI v2, and eventually v3.

RelativePathNotUnique(String)

Paths listed in the spec must be unique.

MissingParametersInPath(StringHashSet<String>)InvalidHost(StringParseError)

Invalid host for URL.

InvalidBasePathURL(StringParseError)

Invalid base path URL.

MissingArrayItem(Option<String>)

The given schema object is an array, but the items field is missing.

InvalidDefinitionName

The name for the given definition is missing or invalid.

InvalidDefinitionPath(PathBuf)

A valid path cannot be obtained for the given definition.

UnsupportedParameterDefinition(StringString)

If a parameter uses a schema, then we expect it to exist in the map of definitions (for now).

UnknownParameterType(StringString)

The type of this parameter is not known.

Io(Error)

I/O errors.

Json(Error)

JSON coding errors.

Yaml(Error)

YAML coding errors.

Templating(Error)

Errors in templating.

Trait Implementations

impl From<Error> for PaperClipError[src]

impl From<Error> for PaperClipError[src]

impl From<Error> for PaperClipError[src]

impl From<ValidationError> for PaperClipError[src]

impl From<Error> for PaperClipError[src]

impl Display for PaperClipError[src]

impl Debug for PaperClipError[src]

impl Fail for PaperClipError[src]

fn context<D>(self, context: D) -> Context<D> where
    D: Display + Send + Sync + 'static, 

Provides context for this failure. Read more

fn compat(self) -> Compat<Self>

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more

Auto Trait Implementations

impl Send for PaperClipError

impl Unpin for PaperClipError

impl Sync for PaperClipError

impl !UnwindSafe for PaperClipError

impl !RefUnwindSafe for PaperClipError

Blanket Implementations

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

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

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.

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> AsFail for T where
    T: Fail, 

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

fn name(&self) -> Option<&str>

Returns the "name" of the error. Read more

fn cause(&self) -> Option<&(dyn Fail + 'static)>

Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more

fn backtrace(&self) -> Option<&Backtrace>

Returns a reference to the Backtrace carried by this failure, if it carries one. Read more

fn context<D>(self, context: D) -> Context<D> where
    D: Display + Send + Sync + 'static, 

Provides context for this failure. Read more

fn compat(self) -> Compat<Self>

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more

impl<T> Erased for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,