pub enum CodegenError {
Io {
path: PathBuf,
source: Error,
},
InvalidDescriptor {
detail: String,
},
UnsupportedSchema {
path: PathBuf,
detail: String,
},
UnsupportedInteraction {
operation: String,
interaction: String,
},
InvalidPortableValue {
path: String,
detail: String,
},
GeneratedArtifactDrift {
path: PathBuf,
},
}Expand description
Errors produced while parsing, validating, or generating a contract.
Variants§
Io
A file could not be read.
InvalidDescriptor
Descriptor or Schema data is malformed.
UnsupportedSchema
A Schema cannot be used by the portable value profile.
UnsupportedInteraction
A Descriptor interaction is not supported by the generated language bindings.
InvalidPortableValue
A JSON value would be lossy when represented by JavaScript numbers.
GeneratedArtifactDrift
A checked-in generated artifact differs from its source.
Trait Implementations§
Source§impl Debug for CodegenError
impl Debug for CodegenError
Source§impl Display for CodegenError
impl Display for CodegenError
Source§impl Error for CodegenError
impl Error for CodegenError
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 !RefUnwindSafe for CodegenError
impl !UnwindSafe for CodegenError
impl Freeze for CodegenError
impl Send for CodegenError
impl Sync for CodegenError
impl Unpin for CodegenError
impl UnsafeUnpin for CodegenError
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