pub enum DomainError {
Run(RunError),
NotAMap {
found: &'static str,
},
KeyNotALabel {
found: &'static str,
},
Unrepresentable {
field: String,
found: &'static str,
},
Refused {
keyword: &'static str,
message: String,
},
}Expand description
Why a blue value could not become a domain type.
Variants§
Run(RunError)
The blue program itself failed to parse, type-check or run.
NotAMap
A domain is built from a map; the program produced something else.
KeyNotALabel
A map key blue can write that a domain cannot name (a number, a string).
Unrepresentable
A value with no Lisp spelling: a function, a promise, an error object.
Refused
The form was well-shaped and the domain still refused it: an unknown field, a missing required one, a wrong type. The message is the domain’s own, which names the field.
Trait Implementations§
Source§impl Debug for DomainError
impl Debug for DomainError
Source§impl Display for DomainError
impl Display for DomainError
Source§impl Error for DomainError
impl Error for DomainError
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 DomainError
impl RefUnwindSafe for DomainError
impl Send for DomainError
impl Sync for DomainError
impl Unpin for DomainError
impl UnsafeUnpin for DomainError
impl UnwindSafe for DomainError
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