pub enum Error {
Show 73 variants
Unknown,
NotImplemented,
CannotStartNewTransaction,
InvalidInput,
NoInputRecords,
Timeout,
EnvironmentVariableEmpty(String),
MandatoryEnvironmentVariableMissing(String),
MandatoryEnvironmentVariableIsNotIRI(String),
ServiceError(String),
NoEvent,
NoSubject,
NoPredicate,
PathDoesNotExist(String),
NoRootProjectFound,
DetectedUnknownStoryInputParameter {
story_key: String,
param: String,
expected_params: Vec<String>,
},
NoBaseIRISpecified,
NoIdentifierNamespaceSpecified,
IncorrectBaseIRI {
iri: String,
},
ABoxNamespaceIRIDoesNotEndWithSlash {
iri: String,
},
Parse,
MissingContext,
CouldNotGenerateMetadata,
CouldNotFindRootProject,
CouldNotRewriteIRI {
iri: String,
},
InvalidDockerImageId,
CouldNotLock {
msg: String,
},
MissingIdentifierBaseIRI,
CouldNotCreateClient,
CouldNotConnectToServer,
NoContextProvided,
InvalidClientIri,
PersonaDoesNotExist {
persona_key: String,
},
StoryDoesNotExist {
story_key: String,
use_case_key: String,
},
CouldNotFindStory {
implementation_file: String,
story_id: String,
},
CouldNotFindUseCase(String),
UseCaseDoesNotExist {
use_case_key: String,
},
JSONParseError(Error<Error>),
SerdeJsonError(Error),
InvalidStoryIri,
CouldNotGetStoryResults,
IOError(Error),
ParseIntError(ParseIntError),
FormatError(Error),
IriErrorString(IriError<String>),
IriStringParseError(Error),
IriStringCreationError(CreationError<String>),
CApiError(NulError),
CouldNotOpenDatabase {
source: Box<Error>,
},
HyperError(Error),
HttpError(Error),
InvalidUri(InvalidUri),
InvalidIri(String),
InvalidBaseIri(String),
SerdeUrlEncodingError(Error),
UnknownDataType {
data_type_id: u8,
},
UnknownValueForDataType {
data_type_xsd_iri: String,
value: String,
},
UnknownXsdDataType {
data_type_iri: String,
},
UnknownNTriplesValue {
value: String,
},
Exception {
action: String,
message: String,
},
MultiplicityExceededMaximumNumberOfRows {
maxrow: usize,
multiplicity: usize,
query: String,
},
CannotGetAnyArgumentIndexes {
query: String,
},
ExceededMaximumNumberOfRows {
maxrow: usize,
query: String,
},
RDFoxLicenseFileNotFound,
UnknownResourceException,
CouldNotCreateRDFoxServer,
CouldNotImportRDFFile,
InvalidPrefixName,
InvalidLiteral,
IriParseError(String),
DateParseError(ParseError),
FromPathError(FromPathError),
StripPrefixError(StripPrefixError),
}Variants§
Unknown
NotImplemented
CannotStartNewTransaction
InvalidInput
NoInputRecords
Timeout
EnvironmentVariableEmpty(String)
MandatoryEnvironmentVariableMissing(String)
MandatoryEnvironmentVariableIsNotIRI(String)
ServiceError(String)
NoEvent
NoSubject
NoPredicate
PathDoesNotExist(String)
NoRootProjectFound
DetectedUnknownStoryInputParameter
NoBaseIRISpecified
NoIdentifierNamespaceSpecified
IncorrectBaseIRI
ABoxNamespaceIRIDoesNotEndWithSlash
Parse
MissingContext
CouldNotGenerateMetadata
CouldNotFindRootProject
CouldNotRewriteIRI
InvalidDockerImageId
CouldNotLock
MissingIdentifierBaseIRI
CouldNotCreateClient
CouldNotConnectToServer
NoContextProvided
InvalidClientIri
PersonaDoesNotExist
StoryDoesNotExist
CouldNotFindStory
CouldNotFindUseCase(String)
UseCaseDoesNotExist
JSONParseError(Error<Error>)
SerdeJsonError(Error)
InvalidStoryIri
CouldNotGetStoryResults
IOError(Error)
Represents all other cases of std::io::Error.
ParseIntError(ParseIntError)
FormatError(Error)
IriErrorString(IriError<String>)
IriStringParseError(Error)
IriStringCreationError(CreationError<String>)
CApiError(NulError)
CouldNotOpenDatabase
HyperError(Error)
HttpError(Error)
InvalidUri(InvalidUri)
InvalidIri(String)
InvalidBaseIri(String)
SerdeUrlEncodingError(Error)
UnknownDataType
UnknownValueForDataType
UnknownXsdDataType
UnknownNTriplesValue
Exception
MultiplicityExceededMaximumNumberOfRows
CannotGetAnyArgumentIndexes
ExceededMaximumNumberOfRows
RDFoxLicenseFileNotFound
UnknownResourceException
CouldNotCreateRDFoxServer
CouldNotImportRDFFile
InvalidPrefixName
InvalidLiteral
IriParseError(String)
DateParseError(ParseError)
FromPathError(FromPathError)
StripPrefixError(StripPrefixError)
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<CreationError<String>> for Error
impl From<CreationError<String>> for Error
Source§fn from(source: CreationError<String>) -> Self
fn from(source: CreationError<String>) -> Self
Converts to this type from the input type.
Source§impl From<FromPathError> for Error
impl From<FromPathError> for Error
Source§fn from(source: FromPathError) -> Self
fn from(source: FromPathError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidIri<&str>> for Error
impl From<InvalidIri<&str>> for Error
Source§fn from(value: InvalidIri<&str>) -> Self
fn from(value: InvalidIri<&str>) -> Self
Converts to this type from the input type.
Source§impl From<InvalidIri<String>> for Error
impl From<InvalidIri<String>> for Error
Source§fn from(value: InvalidIri<String>) -> Self
fn from(value: InvalidIri<String>) -> Self
Converts to this type from the input type.
Source§impl From<InvalidUri> for Error
impl From<InvalidUri> for Error
Source§fn from(source: InvalidUri) -> Self
fn from(source: InvalidUri) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<StripPrefixError> for Error
impl From<StripPrefixError> for Error
Source§fn from(source: StripPrefixError) -> Self
fn from(source: StripPrefixError) -> Self
Converts to this type from the input type.
impl Send for Error
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.