The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Weather::OpenWeatherMap::Error - Internal and API error objects

SYNOPSIS

  # Usually received from Weather::OpenWeatherMap

DESCRIPTION

These objects contain information on internal or backend (API) errors; they are generally thrown by Weather::OpenWeatherMap or emitted by POEx::Weather::OpenWeatherMap in response to a failed request.

These objects overload stringification (see "as_string").

These objects consume StackTrace::Auto.

ATTRIBUTES

request

The original Weather::OpenWeatherMap::Request object that caused the error to occur.

source

The source of the error, one of: api, internal, http

status

The error/status message string.

METHODS

as_string

Returns a stringified representation of the error in the form: (uc $err->source) $err->status

SEE ALSO

Weather::OpenWeatherMap

StackTrace::Auto

Devel::StackTrace

AUTHOR

Jon Portnoy <avenj@cobaltirc.org>