Jon Portnoy

NAME

Weather::OpenWeatherMap::Error

SYNOPSIS

  # Usually received from Weather::OpenWeatherMap

DESCRIPTION

These objects contain information on internal or backend (API) errors; they are generally emitted to subscribed sessions by 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>