pub struct Error { /* private fields */ }Expand description
A typed, classified error.
Implementations§
Source§impl Error
impl Error
Sourcepub fn new(class: ErrorClass, message: impl Into<String>) -> Self
pub fn new(class: ErrorClass, message: impl Into<String>) -> Self
Construct an error of the given class with a human-readable message.
Sourcepub fn class(&self) -> ErrorClass
pub fn class(&self) -> ErrorClass
The failure class.
Source§impl Error
impl Error
Sourcepub fn invalid_container(message: impl Into<String>) -> Self
pub fn invalid_container(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn unsupported_version(message: impl Into<String>) -> Self
pub fn unsupported_version(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn unsupported_feature(message: impl Into<String>) -> Self
pub fn unsupported_feature(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn integrity_mismatch(message: impl Into<String>) -> Self
pub fn integrity_mismatch(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn resource_limit(message: impl Into<String>) -> Self
pub fn resource_limit(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_graph(message: impl Into<String>) -> Self
pub fn invalid_graph(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_model(message: impl Into<String>) -> Self
pub fn invalid_model(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn entropy_decode(message: impl Into<String>) -> Self
pub fn entropy_decode(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_pdf_structure(message: impl Into<String>) -> Self
pub fn invalid_pdf_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn codec_replay(message: impl Into<String>) -> Self
pub fn codec_replay(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn missing_external_object(message: impl Into<String>) -> Self
pub fn missing_external_object(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn coverage_violation(message: impl Into<String>) -> Self
pub fn coverage_violation(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn reconstruction_mismatch(message: impl Into<String>) -> Self
pub fn reconstruction_mismatch(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_zip_structure(message: impl Into<String>) -> Self
pub fn invalid_zip_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_xml_structure(message: impl Into<String>) -> Self
pub fn invalid_xml_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_package_structure(message: impl Into<String>) -> Self
pub fn invalid_package_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_json_structure(message: impl Into<String>) -> Self
pub fn invalid_json_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_yaml_structure(message: impl Into<String>) -> Self
pub fn invalid_yaml_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_csv_structure(message: impl Into<String>) -> Self
pub fn invalid_csv_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_markdown_structure(message: impl Into<String>) -> Self
pub fn invalid_markdown_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_html_structure(message: impl Into<String>) -> Self
pub fn invalid_html_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_toml_structure(message: impl Into<String>) -> Self
pub fn invalid_toml_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_jsonl_structure(message: impl Into<String>) -> Self
pub fn invalid_jsonl_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_eml_structure(message: impl Into<String>) -> Self
pub fn invalid_eml_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_parquet_structure(message: impl Into<String>) -> Self
pub fn invalid_parquet_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_arrow_structure(message: impl Into<String>) -> Self
pub fn invalid_arrow_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_json5_structure(message: impl Into<String>) -> Self
pub fn invalid_json5_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_cbor_structure(message: impl Into<String>) -> Self
pub fn invalid_cbor_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_msgpack_structure(message: impl Into<String>) -> Self
pub fn invalid_msgpack_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_config_structure(message: impl Into<String>) -> Self
pub fn invalid_config_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_feed_structure(message: impl Into<String>) -> Self
pub fn invalid_feed_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_geojson_structure(message: impl Into<String>) -> Self
pub fn invalid_geojson_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_gis_structure(message: impl Into<String>) -> Self
pub fn invalid_gis_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_notebook_structure(message: impl Into<String>) -> Self
pub fn invalid_notebook_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_fixedwidth_structure(message: impl Into<String>) -> Self
pub fn invalid_fixedwidth_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_rst_structure(message: impl Into<String>) -> Self
pub fn invalid_rst_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_asciidoc_structure(message: impl Into<String>) -> Self
pub fn invalid_asciidoc_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_mdx_structure(message: impl Into<String>) -> Self
pub fn invalid_mdx_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_mhtml_structure(message: impl Into<String>) -> Self
pub fn invalid_mhtml_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_logstream_structure(message: impl Into<String>) -> Self
pub fn invalid_logstream_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_pkgmeta_structure(message: impl Into<String>) -> Self
pub fn invalid_pkgmeta_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_apispec_structure(message: impl Into<String>) -> Self
pub fn invalid_apispec_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_bib_structure(message: impl Into<String>) -> Self
pub fn invalid_bib_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_rtf_structure(message: impl Into<String>) -> Self
pub fn invalid_rtf_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_container_structure(message: impl Into<String>) -> Self
pub fn invalid_container_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_hdf_structure(message: impl Into<String>) -> Self
pub fn invalid_hdf_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_cfbf_structure(message: impl Into<String>) -> Self
pub fn invalid_cfbf_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_doc_structure(message: impl Into<String>) -> Self
pub fn invalid_doc_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_xls_structure(message: impl Into<String>) -> Self
pub fn invalid_xls_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_ppt_structure(message: impl Into<String>) -> Self
pub fn invalid_ppt_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn invalid_msg_structure(message: impl Into<String>) -> Self
pub fn invalid_msg_structure(message: impl Into<String>) -> Self
Construct an error of this class.
Sourcepub fn internal_invariant(message: impl Into<String>) -> Self
pub fn internal_invariant(message: impl Into<String>) -> Self
Construct an error of this class.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()