Enum rss::Error [] [src]

pub enum Error {
    MissingField(&'static str, &'static str),
    InvalidField(&'static str, &'static str),
    Utf8(Utf8Error),
    XmlParsing(XmlError),
    NotFound,
}

An enumration containing the types of errors that could occur while parsing an RSS feed.

Variants

MissingField(&'static str, &'static str)

A required field was missing.

InvalidField(&'static str, &'static str)

A field was the wrong type.

Utf8(Utf8Error)

An error occurred while converting bytes to UTF8"

XmlParsing(XmlError)

An XML parser error occurred.

NotFound

No element was found.

Trait Implementations

impl Debug for Error
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl StdError for Error
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&StdError>

The lower-level cause of this error, if any. Read more

impl Display for Error
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl From<XmlError> for Error
[src]

fn from(err: XmlError) -> Error

Performs the conversion.

impl From<Utf8Error> for Error
[src]

fn from(err: Utf8Error) -> Error

Performs the conversion.