Struct quire::ErrorCollector
[−]
[src]
pub struct ErrorCollector(_);
An internal structure to track list of errors
It's exposed only to handler of include file. Use ErrorCollector
to submit your errors from include file handler.
Methods
impl ErrorCollector
[src]
fn new() -> ErrorCollector
New error collector
fn add_error(&self, err: Error)
Add another error to error collector
fn into_fatal(&self, err: Error) -> ErrorList
Adds fatal (final) error into collection and return error list
fn into_result<T>(&self, val: T) -> Result<T, ErrorList>
Converts collector into Ok(val)
if no errors reported, into Err
otherwise
fn unwrap(&self) -> ErrorList
Unwraps ErrorList from the collector
Trait Implementations
impl Clone for ErrorCollector
[src]
fn clone(&self) -> ErrorCollector
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more