NAME
At::Error - Throwable Errors
SYNOPSIS
use At::Error; # You shouldn't be here yet.
register 'SomeError';
sub yay {
# Some stuff here ...
return SomeError('Oh, no!') if 'pretend someting bad happened';
return 1;
}
my $okay = yay();
throw $okay unless $okay; # Errors overload bool to be false
DESCRIPTION
You shouldn't be here.
LICENSE
Copyright (C) Sanko Robinson.
This library is free software; you can redistribute it and/or modify it under the terms found in the Artistic License 2. Other copyrights, terms, and conditions may apply to data transmitted through this module.
AUTHOR
Sanko Robinson <sanko@cpan.org>