[][src]Enum docql::Error

pub enum Error {
    Date(String),
    Args(String),
    Query(String),
    ReadSchemaFile(String),
    PrepareOutputDirectory(StringString),
    WriteFile(StringString),
    Serde(Error),
    HandlebarsTemplate(TemplateError),
    HandlebarsRender(RenderError),
    ClapError(Error),
}

All of the possible errors that can occur

Variants

Date(String)

The call to get the current date from the runtime failed

Args(String)

The call to get the command-line arguments from the runtime failed

Query(String)

The call to get the GraphQL Schema from the runtime via a GraphQL endpoint failed

ReadSchemaFile(String)

The call to get the GraphQL Schema from the runtime via a schema file failed

PrepareOutputDirectory(StringString)

The call to the runtime to prepare the output directory failed

WriteFile(StringString)

The call to the runtime to write a file failed

Serde(Error)

Parsing the GraphQL schema as a serde object failed

HandlebarsTemplate(TemplateError)

Loading a handlebars template failed

HandlebarsRender(RenderError)

Rendering a handlebars template failed

ClapError(Error)

An error occurred parsing arguments

Implementations

impl Error[src]

pub fn exit_code(&self) -> i32[src]

The process exit code to use for each type of error

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<RenderError> for Error[src]

impl From<TemplateError> for Error[src]

Auto Trait Implementations

impl !RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

Blanket Implementations

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

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

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

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.