[][src]Enum warpgrapher::error::ErrorKind

pub enum ErrorKind {
    AddrInUse(Error),
    AddrNotAvailable(Error),
    ClientReceivedInvalidJson,
    ClientRequestFailed(String),
    ClientRequestUnexpectedPayload(Value),
    ConfigEndpointInputTypeScalarNameError(StringString),
    ConfigEndpointOutputTypeScalarNameError(StringString),
    ConfigTypeScalarNameError(StringString),
    ConfigNotFound(Error),
    ConfigDeserializationError(Error),
    ConfigVersionMismatchError(Stringi32),
    ConfigTypeDuplicateError(StringString),
    ConfigEndpointDuplicateError(StringString),
    ConfigEndpointMissingTypeError(StringString),
    CouldNotBuildCypherPool(Error),
    CouldNotInferType,
    EnvironmentVariableNotFound(String),
    InputTypeMismatch(String),
    InvalidType(String),
    InvalidProperty(String),
    InvalidPropertyType(String),
    InvalidPropNameID(String),
    JsonError(Error),
    MissingArgument(String),
    MissingProperty(StringOption<String>),
    MissingResultSet,
    MissingResultElement(String),
    MissingSchemaElement(String),
    FieldMissingResolverError(StringString),
    GraphQueryError(GraphError),
    GraphQLOutputError(String),
    RegexError,
    ResolverNotFound(StringString),
    ServerNotRunning,
    ServerShutdownFailed,
    ServerAlreadyRunning,
    ServerStartupFailed(RecvError),
    ValidatorNotFound(StringString),
    ValidationError(String),
}

Categories of Warpgrapher errors.

Variants

AddrInUse(Error)

Returned when the server attempts to listen on an address/port combination that is already bound on the system.

AddrNotAvailable(Error)

Returned when the server attempts to listen on an address not assigned to any of the system's interfaces.

ClientReceivedInvalidJson

Returned when WarpgrapherClient receives an HTTP response which contains a body that is not valid JSON. All GraphQL responses including errors are expected to be in the form of valid JSON.

ClientRequestFailed(String)

Returned when WarpgrapherClient is unable to submit a request to the server (network error or server error).

ClientRequestUnexpectedPayload(Value)

Returned when WarpgrapherClient receives a valid JSON response that does not contain the expected 'data' or 'errors' objects.

ConfigEndpointInputTypeScalarNameError(StringString)

Returned when a custom endpoint defines an inline custom input type with a name that conflicts with a GraphQL scalar

ConfigEndpointOutputTypeScalarNameError(StringString)

Returned when a custom endpoint defines an inline custom output type with a name that conflicts with a GraphQL scalar

ConfigTypeScalarNameError(StringString)

Returned when a warpgrapher type is defined with a name that conflicts with a GraphQL scalar

ConfigNotFound(Error)

Returned when a WarpgrapherConfig struct attempts to be initialized from a config file that cannot be found on disk.

ConfigDeserializationError(Error)

Returned when a WarpgrapherConfig fails to deserialize because the provided data does not match the expected config spec

ConfigVersionMismatchError(Stringi32)

Returned when attempting to compose configs with different versions

ConfigTypeDuplicateError(StringString)

Returned when two warpgrapher types are defined with the same name

ConfigEndpointDuplicateError(StringString)

Returned when two warpgrapher endpoints are defined with the same name

ConfigEndpointMissingTypeError(StringString)

Returned when a warpgrapher endpoint defines for an input or output a type that does not exist

CouldNotBuildCypherPool(Error)

Returned when WarpgrapherServer fails to build a pool for the cypher connection manager.

CouldNotInferType

Returned when the internal resolver logic cannot infer the correct warpgrapher type that corresponds to data queried from the database. Note: This error should never be thrown. This is a critical error. If you see it, please report it to the warpgrapher team.

EnvironmentVariableNotFound(String)

Returned when an environment variable cannot be found

InputTypeMismatch(String)

Returned when there is a mismatch in the expected internal representation of a warpgrapher type Note: This error should never be thrown. This is a critical error. If you see it, please report it to the warpgrapher team.

InvalidType(String)

Returned when trying to perform on operation on a type that cannot support it. For example, this would be returned when trying to load a relationship from an input, as input types don't have relationships. This is a critical internal error. If you see it, please report it to the warpgrapher team.

InvalidProperty(String)

Returned when received GraphQL input contains an invalid property Note: This error should never be thrown. This is a critical error. If you see it, please report it to the warpgrapher team.

InvalidPropertyType(String)

Returned when there is a mismatch in the expected internal representation of a warpgrapher type Note: This error should never be thrown. This is a critical error. If you see it, please report it to the warpgrapher team.

InvalidPropNameID(String)

Returned during config validation if the config defines a Type or Rel property with the name 'ID'. ID is a reserved prop used by the Warpgrapher internals.

JsonError(Error)

Returned when attempts to serialize/deserialize a struct to/from JSON fails

MissingArgument(String)

Returned when a resolver's input is missing an expected argument. Given GraphQL's type system Note: This error should never be thrown. This is a critical error. If you see it, please report it to the warpgrapher team.

MissingProperty(StringOption<String>)

Returned when warpgrapher missing a property expected for that node or rel type. This could occur if a node or relationship is created with a direct cypher query in a custom resolver or external to Warpgrapher altogether, without creating an 'id' property with a UUID. This could also occur if a schema change makes a previously optional and nullable property mandatory and non-nullable.

MissingResultSet

Returned when the cursor points outside of the bounds of the data returned Note: This error should never be thrown. This is a critical error. If you see it, please report it to the warpgrapher team.

MissingResultElement(String)

Returned when there is a mismatch between the data returned from the database and what the internal representation of a warpgrapher type expects

MissingSchemaElement(String)

Returned at start time when warpgrapher is dynamically generating a GraphQL schema from the config but there is a mismatch in the schema. Note: This error should never be thrown. This is a critical error. If you see it, please report it to the warpgrapher team.

FieldMissingResolverError(StringString)

Returned when a field (prop or rel) of a node has been determined to be a DynamicScalar type and will attempt to execute a custom resolver for that field. This error is returned if the resolver is not defined for that DynamicScalar type field. Note: This error should never be thrown. This is a critical error. If you see it, please report it to the warpgrapher team.

GraphQueryError(GraphError)

Returned when there is a failure executing a neo4j query and the expected results from the database are not returned.

GraphQLOutputError(String)

Returned when the output of a GraphQL execution is not a valid JSON. Note: This error should never be thrown. This is a critical error. If you see it, please report it to the warpgrapher team.

RegexError

Returned when a resolver attempt to infer relationships between queried data via a regex match fails

ResolverNotFound(StringString)

Returned when a custom endpoint is defined or a resolver is defined for a field, but the corresponding resolver is not provided.

ServerNotRunning

Returned when a WarpgrapherServer tries to shutdown but the server is not running.

ServerShutdownFailed

Returned when an error is encountered while trying to shutdown a WarpgrapherServer that is supposed to be running.

ServerAlreadyRunning

Returned when a WarpgrapherServer that is already running tries to start.

ServerStartupFailed(RecvError)

Returned when a WarpgrapherServer fails to start.

ValidatorNotFound(StringString)

Returned when a custom input validator is defined, but the corresponding validator is not provided.

ValidationError(String)

This error is returned by a custom input validator when the validation fails. This error is converted into a FieldError and returned to the client.

Trait Implementations

impl Debug for ErrorKind[src]

Auto Trait Implementations

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> Erased for T

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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> Typeable for T where
    T: Any

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