~ubuntu-branches/ubuntu/precise/liberror-perl/precise

« back to all changes in this revision

Viewing changes to lib/Error/Simple.pm

  • Committer: Bazaar Package Importer
  • Author(s): Clint Burfoot
  • Date: 2007-12-02 16:20:39 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20071202162039-gyz66vprze51ob4z
Tags: 0.17-1
* New upstream version (closes: #383606)
* debian/rules: use CURDIR instead of PWD (closes: #390482)
* debian/copyright: update copy of author's copyright
* debian/control: new standards version, debhelper dependency
* lib/Error/Simple.pm: manpage fix to POD

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Error.pm
 
2
#
 
3
# Copyright (c) 2006 Shlomi Fish <shlomif@iglu.org.il>. All rights reserved.
 
4
# This program is free software; you can redistribute it and/or
 
5
# modify it under the terms of the MIT/X11 license.
 
6
 
 
7
use strict;
 
8
use warnings;
 
9
 
 
10
use Error;
 
11
 
 
12
1;
 
13
__END__
 
14
 
 
15
=head1 NAME
 
16
 
 
17
Error::Simple - the simple error sub-class of Error
 
18
 
 
19
=head1 SYNOPSIS
 
20
 
 
21
    use base 'Error::Simple';
 
22
 
 
23
=head1 DESCRIPTION
 
24
 
 
25
The only purpose of this module is to allow one to say:
 
26
 
 
27
    use base 'Error::Simple';
 
28
 
 
29
and the only thing it does is "use" Error.pm. Refer to the documentation
 
30
of L<Error> for more information about Error::Simple.
 
31
 
 
32
=head1 METHODS
 
33
 
 
34
=head2 Error::Simple->new($text [, $value])
 
35
 
 
36
Constructs an Error::Simple with the text C<$text> and the optional value
 
37
C<$value>.
 
38
 
 
39
=head2 $err->stringify()
 
40
 
 
41
Error::Simple overloads this method.
 
42
 
 
43
=head1 KNOWN BUGS
 
44
 
 
45
None.
 
46
 
 
47
=head1 AUTHORS
 
48
 
 
49
Shlomi Fish ( C<< shlomif@iglu.org.il >> )
 
50
 
 
51
=head1 SEE ALSO
 
52
 
 
53
L<Error>
 
54