Enum diana::errors::ErrorKind [−][src]
pub enum ErrorKind {}Show 17 variants
Io(Error), EnvVar(VarError), Reqwest(Error), Json(Error), JsonWebToken(Error), Msg(String), InvalidEnvVarType(String, String), GraphQLContextNotFound(String), MutexPoisoned(String), SubscriptionDataPublishFailed, InvalidDatetimeIntervalIndicator(String), Unauthorised, IncompleteBuilderFields, HttpResponseBuilderFailed, InvokedSubscriptionsServerWithInvalidOptions, AttemptedPlaygroundInProduction, IntegrationError(String, String), // some variants omitted
Expand description
The kind of an error.
Variants
Tuple Fields of Io
0: Error
Tuple Fields of EnvVar
0: VarError
Tuple Fields of Reqwest
0: Error
Tuple Fields of Json
0: Error
Tuple Fields of JsonWebToken
0: Error
A convenient variant for String.
Tuple Fields of Msg
0: String
An environment variable had an invalid type. E.g. a port was given as a hex string for some reason.
A required part of the GraphQL context was not found.
Tuple Fields of GraphQLContextNotFound
0: String
A Mutex was poisoned (if .lock()
failed).
Tuple Fields of MutexPoisoned
0: String
The subscriptions server failed to publish data it was asked to. This error is usually caused by an authentication failure.
An invalid indicator string was used when trying to convert a timestring into a datetime.
Tuple Fields of InvalidDatetimeIntervalIndicator
0: String
There was an unauthorised access attempt.
One or more required builder fields weren’t set up.
The creation of an HTTP response for Lambda or its derivatives failed.
There was an attempt to create a subscriptions server without declaring its existence or configuration in the [Options].
There was an attempt to initialize the GraphiQL playground in a production environment.
There was an error in one of the integrations.
Implementations
A string describing the error kind.