NAME

Net::Rest::Generic::Error - Error handling for Net::Rest::Generic

SUBROUTINES/METHODS

throw()

Used like ->new to give an error object.

USAGE

ARGUMENT	DESCRIPTION
---
type		Describes the variety of failure occurred. Potential
		values could be 'perl error', or basic http error
		codes such as '404', '500', e.t.c.
		~ Default: 'fail'

category	Describes what actually failed. Potential values
		could be 'http request', 'http auth', or something
		specific to your application like 'foobar api error'.
		~ Default: 'object' (assumes something is wrong with
		  Net::Rest::Generic unless told otherwise)

message		Describes the specifics of what actually occurred for
		a user to read.
		~ Default: 'unknown'
---

category()

Helper method to retrieve the category of the current error object.

message()

Helper method to retrieve the message of the current error object.

type()

Helper method to retrieve the type of the current error object.