Venus::Throw

Throw Class

Throw Class for Perl 5

method: error

package main;

use Venus::Throw;

my $throw = Venus::Throw->new;

# $throw->error;

This package provides a mechanism for generating and raising errors (exception objects).

Venus::Kind::Utility

Venus::Role::Stashable

name: rw, opt, Str message: rw, opt, Str package: ro, opt, Str parent: ro, opt, Str, 'Venus::Error' context: ro, opt, Str

The error method throws the prepared error object.

error(HashRef $data) (Error)

{ since => '0.01', }

=example-1 error

# given: synopsis;

my $error = $throw->error;

# bless({
#   ...,
#   "context"  => "(eval)",
#   "message"  => "Exception!",
# }, "Main::Error")

t/Venus.t: pdml: authors t/Venus.t: pdml: license

19 POD Errors

The following errors were encountered while parsing the POD:

Around line 13:

Unknown directive: =name

Around line 21:

Unknown directive: =tagline

Around line 29:

Unknown directive: =abstract

Around line 37:

Unknown directive: =includes

Around line 45:

Unknown directive: =synopsis

Around line 64:

Unknown directive: =description

Around line 73:

Unknown directive: =inherits

Around line 81:

Unknown directive: =integrates

Around line 89:

Unknown directive: =attributes

Around line 101:

Unknown directive: =method

Around line 105:

Unknown directive: =signature

Around line 109:

Unknown directive: =metadata

Around line 155:

=cut found outside a pod block. Skipping to next block.

Around line 184:

=cut found outside a pod block. Skipping to next block.

Around line 218:

=cut found outside a pod block. Skipping to next block.

Around line 256:

=cut found outside a pod block. Skipping to next block.

Around line 288:

=cut found outside a pod block. Skipping to next block.

Around line 316:

=cut found outside a pod block. Skipping to next block.

Around line 330:

Unknown directive: =partials