[−][src]Enum warpgrapher::error::ErrorKind
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.
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.
Returned when a custom endpoint defines an inline custom input type with a name that conflicts with a GraphQL scalar
Returned when a custom endpoint defines an inline custom output type with a name that conflicts with a GraphQL scalar
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
Returned when attempting to compose configs with different versions
Returned when two warpgrapher types are defined with the same name
Returned when two warpgrapher endpoints are defined with the same name
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.
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.
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.
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.
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.
Returned when a resolver attempt to infer relationships between queried data via a regex match fails
Returned when a custom endpoint is defined or a resolver is defined for a field, but the corresponding resolver is not provided.
Returned when a WarpgrapherServer
tries to shutdown but the server is not
running.
Returned when an error is encountered while trying to shutdown a WarpgrapherServer
that is supposed to be running.
Returned when a WarpgrapherServer
that is already running tries to start.
ServerStartupFailed(RecvError)
Returned when a WarpgrapherServer
fails to start.
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
Auto Trait Implementations
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,