Stencil::Error
Represents a Stencil exception
use Stencil::Data; use Stencil::Error; use Stencil::Repo; use Stencil::Space; my $repo = Stencil::Repo->new; my $error = Stencil::Error->new; my $data = Stencil::Data->new(repo => $repo, name => 'foo'); my $space = Stencil::Space->new(repo => $repo, name => 'test');
This package provides an error class which represents a Stencil exception.
This package inherits behaviors from:
Data::Object::Exception
This package uses type constraints from:
Types::Standard
This package implements the following functions:
on_source_data(Str $class, Object $self, Object $match) : Object
The on_source_data method returns an exception object for sources without __DATA__ sections.
__DATA__
# given: synopsis my $result = Stencil::Error->on_source_data($space, $space->locate); # $result->id # $result->message # $result->context
on_source_load(Str $class, Object $self, Object $match) : Object
The on_source_load method returns an exception object for unloadable sources.
# given: synopsis my $result = Stencil::Error->on_source_load($space, $space->locate); # $result->id # $result->message # $result->context
on_source_section(Str $class, Object $self, Object $match, Str $ref) : Object
The on_source_section method returns an exception object for sources without a requested template.
# given: synopsis my $result = Stencil::Error->on_source_section($space, $space->locate, 'setup'); # $result->id # $result->message # $result->context
on_source_test(Str $class, Object $self, Object $match) : Object
The on_source_test method returns an exception object for sources with broken interfaces.
# given: synopsis my $result = Stencil::Error->on_source_test($space, $space->locate); # $result->id # $result->message # $result->context
on_space_locate(Str $class, Object $self) : Object
The on_space_locate method returns an exception object for unlocatable spaces.
# given: synopsis my $result = Stencil::Error->on_space_locate($space); # $result->id # $result->message # $result->context
Al Newkirk, awncorp@cpan.org
awncorp@cpan.org
Copyright (C) 2011-2019, Al Newkirk, et al.
This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file".
Wiki
Project
Initiatives
Milestones
Contributing
Issues
To install Stencil, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Stencil
CPAN shell
perl -MCPAN -e shell install Stencil
For more information on module installation, please visit the detailed CPAN module installation guide.