| Eidolon documentation | Contained in the Eidolon distribution. |
Eidolon::Driver::Router::Exceptions - Eidolon router driver exceptions.
In error handler of your application (lib/Example/Error.pm) you could write:
if ($e eq "Error::Driver::Router::NotFound")
{
print "Page not found!";
}
else
{
$e->rethrow();
}
The Eidolon::Driver::Router::Exceptions package creates router driver exceptions that are used by all router drivers.
Base router driver exception. All other router driver exceptions subclass it.
Nothing was found during a query handler search.
Current user has no permissions to view this page. For example, the application (or the page) is private and user is not authorized.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Anton Belousov, <abel@cpan.org>
Copyright (c) 2009, Atma 7, http://www.atma7.com
| Eidolon documentation | Contained in the Eidolon distribution. |
package Eidolon::Driver::Router::Exceptions; # ============================================================================== # # Eidolon # Copyright (c) 2009, Atma 7 # --- # Eidolon/Driver/Router/Exceptions.pm - router driver exceptions # # ============================================================================== use warnings; use strict; our $VERSION = "0.02"; # 2009-05-14 05:44:39 use Eidolon::Core::Exception::Builder ( "DriverError::Router" => { "isa" => "DriverError", "title" => "Router driver error" }, "DriverError::Router::NotFound" => { "isa" => "DriverError::Router", "title" => "Page not found" }, "DriverError::Router::Forbidden" => { "isa" => "DriverError::Router", "title" => "Authorization required" }, "DriverError::Router::NoRoutes" => { "isa" => "DriverError::Router", "title" => "No routes defined for the application" } ); 1; __END__