pub enum OptionError {
BadSuboption {
option: String,
given: String,
},
Removed {
option: String,
since: &'static str,
instead: &'static str,
},
NoEffect {
option: &'static str,
why: &'static str,
warning: bool,
},
UnsupportedCodePage(u16),
UnknownFlag(String),
}Expand description
What an option could not do. Each but UnsupportedCodePage and UnknownFlag is a message IBM’s compiler gives and carries on from (assumptions C120 to C122).
Variants§
BadSuboption
A suboption the option does not have: the option is discarded.
Removed
A suboption IBM removed, replaced by instead.
NoEffect
An option Enterprise COBOL 6.4 does not have, given a warning or (warning false) an
informational message and no effect.
UnsupportedCodePage(u16)
UnknownFlag(String)
Trait Implementations§
Source§impl Clone for OptionError
impl Clone for OptionError
Source§impl Debug for OptionError
impl Debug for OptionError
Source§impl Display for OptionError
impl Display for OptionError
impl Eq for OptionError
Source§impl Error for OptionError
impl Error for OptionError
1.30.0 · 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 PartialEq for OptionError
impl PartialEq for OptionError
impl StructuralPartialEq for OptionError
Auto Trait Implementations§
impl Freeze for OptionError
impl RefUnwindSafe for OptionError
impl Send for OptionError
impl Sync for OptionError
impl Unpin for OptionError
impl UnsafeUnpin for OptionError
impl UnwindSafe for OptionError
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