pub enum SpecError {
Show 22 variants
Io(Error),
InvalidUtf8 {
path: String,
},
YamlParse {
message: String,
path: String,
},
Json(Error),
SchemaValidation {
message: String,
path: String,
},
SemanticValidation {
message: String,
path: String,
},
RustKeyword {
segment: String,
id: String,
path: String,
},
DuplicateId {
id: String,
file1: String,
file2: String,
},
DepCollision {
dep1: String,
dep2: String,
fn_name: String,
path: String,
},
MissingDep {
dep: String,
path: String,
},
CyclicDep {
cycle_path: Vec<String>,
path: String,
},
UseStatementInBody {
path: String,
},
BodyRustMustBeBlock {
message: String,
path: String,
},
BodyRustLooksLikeFnDeclaration {
path: String,
},
LocalTestExpectNotExpr {
id: String,
message: String,
path: String,
},
DuplicateLocalTestId {
id: String,
path: String,
},
ContractTypeInvalid {
field: String,
type_str: String,
message: String,
path: String,
},
ContractInputNameInvalid {
name: String,
message: String,
path: String,
},
Traversal {
message: String,
path: String,
},
Generator {
message: String,
},
OutputDir {
message: String,
},
MissingMarker {
path: String,
},
}Expand description
Error types for spec-core operations
Variants§
Io(Error)
InvalidUtf8
YamlParse
Json(Error)
SchemaValidation
SemanticValidation
RustKeyword
DuplicateId
DepCollision
MissingDep
CyclicDep
UseStatementInBody
BodyRustMustBeBlock
BodyRustLooksLikeFnDeclaration
LocalTestExpectNotExpr
DuplicateLocalTestId
ContractTypeInvalid
ContractInputNameInvalid
Traversal
Generator
OutputDir
MissingMarker
Trait Implementations§
Source§impl Error for SpecError
impl Error for SpecError
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()
Auto Trait Implementations§
impl Freeze for SpecError
impl !RefUnwindSafe for SpecError
impl Send for SpecError
impl Sync for SpecError
impl Unpin for SpecError
impl UnsafeUnpin for SpecError
impl !UnwindSafe for SpecError
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
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.