Eidolon::Driver::Log::Exceptions - Eidolon log driver exceptions.


Eidolon documentation Contained in the Eidolon distribution.

Index


Code Index:

NAME

Top

Eidolon::Driver::Log::Exceptions - Eidolon log driver exceptions.

SYNOPSIS

Top

In error handler of your application (lib/Example/Error.pm) you could write:

    if ($e eq "Error::Driver::Log::Open")
    {
        print "Cannot open log file!";
    }
    else
    {
        $e->rethrow();
    }

DESCRIPTION

Top

The Eidolon::Driver::Log::Exceptions package creates log driver exceptions that are used by all log drivers.

EXCEPTIONS

Top

Error::Driver::Log

Base log driver exception. All other log driver exceptions subclass it.

Error::Driver::Log::Directory

Error opening log directory. Thrown when log directory doesn't exist.

Error::Driver::Log::Open

Error opening log file. Thrown when driver cannot open log file for writing.

SEE ALSO

Top

Eidolon, Eidolon::Driver::Exceptions, Eidolon::Core::Exception, Eidolon::Core::Exception::Builder

LICENSE

Top

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Top

Anton Belousov, <abel@cpan.org>

COPYRIGHT

Top


Eidolon documentation Contained in the Eidolon distribution.

package Eidolon::Driver::Log::Exceptions;
# ==============================================================================
#
#   Eidolon
#   Copyright (c) 2009, Atma 7
#   ---
#   Eidolon/Driver/Log/Exceptions.pm - log driver exceptions
#
# ==============================================================================

use warnings;
use strict;

our $VERSION = "0.02"; # 2009-05-14 05:44:28

use Eidolon::Core::Exception::Builder 
(
    "DriverError::Log" => 
    {
        "isa"   => "DriverError",
        "title" => "Log driver error"
    },

    "DriverError::Log::Directory" => 
    {
        "isa"   => "DriverError::Log",
        "title" => "Cannot open log directory"
    },

    "DriverError::Log::Open" => 
    {
        "isa"   => "DriverError::Log",
        "title" => "Cannot open log file"
    }
);

1;

__END__