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

NAME

IWL::Error - The base error handling class of IWL

DESCRIPTION

IWL::Error handles registering and reporting errors for IWL

METHODS

errorList

In scalar context returns the newline separated contents of the error stack. In list context it returns the error stack as a list.

errorShift

Like IWL::Error::errorList(3pm) but empties the error stack and resets the bad state.

chompErrors

Removes trailing newlines from the messages on the error stack.

clearErrors

Empties the error stack.

bad

Returns the current bad state.

errors

Returns the number of messages on the error stack.

PROTECTED METHODS

The following methods should only be used by classes that inherit from IWL::Error.

_pushError (ERROR_LIST)

Push all strings in ERROR_LIST onto the error stack and returns false (can be used to return with an error from arbitrary functions).

Parameters: ERROR_LIST - the strings to push into the error stack

_pushFatalError (ERROR_LIST)

Combines IWL::Error::_pushError(3pm) and IWL::Error::_setBad(3pm) to produce a fatal error

Parameters: ERROR_LIST - the strings to push into the error stack

_setBad (STATE)

Sets the current bad state.

Parameters: STATE - a boolean state value

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 118:

You forgot a '=back' before '=head1'

Around line 123:

'=item' outside of any '=over'

=over without closing =back