pub enum Error {
Show 25 variants
Null,
Failure(ErrorStr),
CustomError(ErrorStr),
ArgMissingName(ErrorStr),
ArgParsingError(ErrorStr),
ArgMissingValue(ErrorStr),
ConParsingFailed(ErrorStr),
ConNoPOSIfCMDExists,
ConOptionTypeError(ErrorStr),
ConDeactivateStyleError(ErrorStr),
ConMissingIndex(ErrorStr, ErrorStr),
ConMissingField(ErrorStr, ErrorStr, ErrorStr),
ConInvalidName(ErrorStr, ErrorStr),
ConInvalidIndex(ErrorStr, ErrorStr),
ConOptionAliasError(ErrorStr),
ConParsingIndexFailed(ErrorStr, ErrorStr),
SpExtractError(ErrorStr),
SpMissingArgument(ErrorStr),
SpOptForceRequired(ErrorStr),
SpPOSForceRequired(ErrorStr),
SpCMDForceRequired(ErrorStr),
SpInvalidOptionName(ErrorStr),
SpInvalidOptionValue(ErrorStr, ErrorStr),
SpDeactivateStyleError(ErrorStr, bool),
InvokeError(ErrorStr),
}Variants§
Null
Failure(ErrorStr)
CustomError(ErrorStr)
ArgMissingName(ErrorStr)
ArgParsingError(ErrorStr)
ArgMissingValue(ErrorStr)
ConParsingFailed(ErrorStr)
ConNoPOSIfCMDExists
ConOptionTypeError(ErrorStr)
ConDeactivateStyleError(ErrorStr)
ConMissingIndex(ErrorStr, ErrorStr)
ConMissingField(ErrorStr, ErrorStr, ErrorStr)
ConInvalidName(ErrorStr, ErrorStr)
ConInvalidIndex(ErrorStr, ErrorStr)
ConOptionAliasError(ErrorStr)
ConParsingIndexFailed(ErrorStr, ErrorStr)
SpExtractError(ErrorStr)
SpMissingArgument(ErrorStr)
SpOptForceRequired(ErrorStr)
SpPOSForceRequired(ErrorStr)
SpCMDForceRequired(ErrorStr)
SpInvalidOptionName(ErrorStr)
SpInvalidOptionValue(ErrorStr, ErrorStr)
SpDeactivateStyleError(ErrorStr, bool)
InvokeError(ErrorStr)
Implementations§
source§impl Error
impl Error
pub fn is_failure(&self) -> bool
sourcepub fn raise_error<T: Into<ErrorStr>>(t: T) -> Self
pub fn raise_error<T: Into<ErrorStr>>(t: T) -> Self
Create Error::CustomError error
sourcepub fn raise_failure<T: Into<ErrorStr>>(t: T) -> Self
pub fn raise_failure<T: Into<ErrorStr>>(t: T) -> Self
Create Error::Failure error
sourcepub fn arg_parsing_failed<T: Into<ErrorStr>>(t: T) -> Self
pub fn arg_parsing_failed<T: Into<ErrorStr>>(t: T) -> Self
Create Error::ArgParsingError error
sourcepub fn arg_missing_name<T: Into<ErrorStr>>(t: T) -> Self
pub fn arg_missing_name<T: Into<ErrorStr>>(t: T) -> Self
Create Error::ArgMissingName error
sourcepub fn con_can_not_insert_pos() -> Self
pub fn con_can_not_insert_pos() -> Self
Create Error::ConNoPOSIfCMDExists error
sourcepub fn con_invalid_name<T: Into<ErrorStr>>(t: T, p: T) -> Self
pub fn con_invalid_name<T: Into<ErrorStr>>(t: T, p: T) -> Self
Create Error::ConInvalidName error
sourcepub fn con_missing_index<T: Into<ErrorStr>>(t: T, p: T) -> Self
pub fn con_missing_index<T: Into<ErrorStr>>(t: T, p: T) -> Self
Create Error::ConMissingIndex error
sourcepub fn con_missing_field<T: Into<ErrorStr>>(f: T, t: T, p: T) -> Self
pub fn con_missing_field<T: Into<ErrorStr>>(f: T, t: T, p: T) -> Self
Create Error::ConMissingField error
sourcepub fn con_invalid_index<T: Into<ErrorStr>>(p: T, e: T) -> Self
pub fn con_invalid_index<T: Into<ErrorStr>>(p: T, e: T) -> Self
Create Error::ConInvalidIndex error
sourcepub fn con_parsing_failed<T: Into<ErrorStr>>(t: T) -> Self
pub fn con_parsing_failed<T: Into<ErrorStr>>(t: T) -> Self
Create Error::ConParsingFailed error
sourcepub fn con_parsing_index_failed<T: Into<ErrorStr>>(t: T, e: T) -> Self
pub fn con_parsing_index_failed<T: Into<ErrorStr>>(t: T, e: T) -> Self
Create Error::ConParsingIndexFailed error
sourcepub fn con_unsupport_deactivate_style<T: Into<ErrorStr>>(t: T) -> Self
pub fn con_unsupport_deactivate_style<T: Into<ErrorStr>>(t: T) -> Self
Create Error::ConDeactivateStyleError error
sourcepub fn con_unsupport_option_type<T: Into<ErrorStr>>(t: T) -> Self
pub fn con_unsupport_option_type<T: Into<ErrorStr>>(t: T) -> Self
Create Error::ConOptionTypeError error
sourcepub fn con_invalid_option_alias<T: Into<ErrorStr>>(t: T) -> Self
pub fn con_invalid_option_alias<T: Into<ErrorStr>>(t: T) -> Self
Create Error::ConOptionAliasError error
sourcepub fn sp_missing_argument<T: Into<ErrorStr>>(t: T) -> Self
pub fn sp_missing_argument<T: Into<ErrorStr>>(t: T) -> Self
Create Error::SpMissingArgument error
sourcepub fn sp_pos_force_require<T: Into<ErrorStr>>(t: T) -> Self
pub fn sp_pos_force_require<T: Into<ErrorStr>>(t: T) -> Self
Create Error::SpPOSForceRequired error
sourcepub fn sp_opt_force_require<T: Into<ErrorStr>>(t: T) -> Self
pub fn sp_opt_force_require<T: Into<ErrorStr>>(t: T) -> Self
Create Error::SpOptForceRequired error
sourcepub fn sp_cmd_force_require<T: Into<ErrorStr>>(t: T) -> Self
pub fn sp_cmd_force_require<T: Into<ErrorStr>>(t: T) -> Self
Create Error::SpCMDForceRequired error
sourcepub fn sp_invalid_option_name<T: Into<ErrorStr>>(t: T) -> Self
pub fn sp_invalid_option_name<T: Into<ErrorStr>>(t: T) -> Self
Create Error::SpInvalidOptionName error
sourcepub fn sp_invalid_option_value<T: Into<ErrorStr>>(n: T, t: T) -> Self
pub fn sp_invalid_option_value<T: Into<ErrorStr>>(n: T, t: T) -> Self
Create Error::SpInvalidOptionValue error
sourcepub fn sp_deactivate_style_error<T: Into<ErrorStr>>(t: T, support: bool) -> Self
pub fn sp_deactivate_style_error<T: Into<ErrorStr>>(t: T, support: bool) -> Self
Create Error::SpDeactivateStyleError error
sourcepub fn sp_extract_error<T: Into<ErrorStr>>(t: T) -> Self
pub fn sp_extract_error<T: Into<ErrorStr>>(t: T) -> Self
Create Error::SpExtractError error
sourcepub fn invoke_error<T: Into<ErrorStr>>(t: T) -> Self
pub fn invoke_error<T: Into<ErrorStr>>(t: T) -> Self
Create Error::InvokeError error