pub enum BuiltInExceptions {
Show 27 variants
DoubleTooSmall {
found: f64,
min: f64,
},
DoubleTooBig {
found: f64,
max: f64,
},
FloatTooSmall {
found: f32,
min: f32,
},
FloatTooBig {
found: f32,
max: f32,
},
IntegerTooSmall {
found: i32,
min: i32,
},
IntegerTooBig {
found: i32,
max: i32,
},
LongTooSmall {
found: i64,
min: i64,
},
LongTooBig {
found: i64,
max: i64,
},
LiteralIncorrect {
expected: String,
},
ReaderExpectedStartOfQuote,
ReaderExpectedEndOfQuote,
ReaderInvalidEscape {
character: char,
},
ReaderInvalidBool {
value: String,
},
ReaderInvalidInt {
value: String,
},
ReaderExpectedInt,
ReaderInvalidLong {
value: String,
},
ReaderExpectedLong,
ReaderInvalidDouble {
value: String,
},
ReaderExpectedDouble,
ReaderInvalidFloat {
value: String,
},
ReaderExpectedFloat,
ReaderExpectedBool,
ReaderExpectedSymbol {
symbol: char,
},
DispatcherUnknownCommand,
DispatcherUnknownArgument,
DispatcherExpectedArgumentSeparator,
DispatcherParseException {
message: String,
},
}
Variants§
DoubleTooSmall
DoubleTooBig
FloatTooSmall
FloatTooBig
IntegerTooSmall
IntegerTooBig
LongTooSmall
LongTooBig
LiteralIncorrect
ReaderExpectedStartOfQuote
ReaderExpectedEndOfQuote
ReaderInvalidEscape
ReaderInvalidBool
ReaderInvalidInt
ReaderExpectedInt
ReaderInvalidLong
ReaderExpectedLong
ReaderInvalidDouble
ReaderExpectedDouble
ReaderInvalidFloat
ReaderExpectedFloat
ReaderExpectedBool
ReaderExpectedSymbol
DispatcherUnknownCommand
DispatcherUnknownArgument
DispatcherExpectedArgumentSeparator
DispatcherParseException
Implementations§
Source§impl BuiltInExceptions
impl BuiltInExceptions
pub fn create(self) -> CommandSyntaxException
pub fn create_with_context( self, reader: &StringReader, ) -> CommandSyntaxException
Trait Implementations§
Source§impl Clone for BuiltInExceptions
impl Clone for BuiltInExceptions
Source§fn clone(&self) -> BuiltInExceptions
fn clone(&self) -> BuiltInExceptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BuiltInExceptions
impl Debug for BuiltInExceptions
Source§impl PartialEq for BuiltInExceptions
impl PartialEq for BuiltInExceptions
impl StructuralPartialEq for BuiltInExceptions
Auto Trait Implementations§
impl Freeze for BuiltInExceptions
impl RefUnwindSafe for BuiltInExceptions
impl Send for BuiltInExceptions
impl Sync for BuiltInExceptions
impl Unpin for BuiltInExceptions
impl UnwindSafe for BuiltInExceptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)