summaryrefslogtreecommitdiff
path: root/lib/WWW/Efa/Error/NoData.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-08-14 05:18:31 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-08-14 05:18:31 +0200
commit8bfee41e214b015fe6eb8ef0c185859f5b6401a7 (patch)
tree58f70a47fbf6134f5b95a389a3a1f83033fb4464 /lib/WWW/Efa/Error/NoData.pm
parentfec4f0d857fb35a7c6cd35a51694671651b23df7 (diff)
Add remaining error classes, sort of
Diffstat (limited to 'lib/WWW/Efa/Error/NoData.pm')
-rw-r--r--lib/WWW/Efa/Error/NoData.pm50
1 files changed, 50 insertions, 0 deletions
diff --git a/lib/WWW/Efa/Error/NoData.pm b/lib/WWW/Efa/Error/NoData.pm
new file mode 100644
index 0000000..e74d220
--- /dev/null
+++ b/lib/WWW/Efa/Error/NoData.pm
@@ -0,0 +1,50 @@
+package WWW::Efa::Error::NoData;
+
+=head1 NAME
+
+WWW::Efa::Error::NoData - WWW::Efa error, efa.vrr.de returned no data
+
+=head1 SYNOPSIS
+
+ use WWW::Efa::Error::Setup;
+
+ my $error = WWW::Efa::Error::NoData->new();
+
+ die $error->as_string();
+ # WWW::Efa error: No data returned by efa.vrr.de
+
+=head1 DESCRIPTION
+
+efa.vrr.de returned no parsable data
+
+=cut
+
+use strict;
+use warnings;
+use 5.010;
+
+use base 'Exporter';
+
+our @EXPORT_OK = qw{};
+our @ISA = ('WWW::Efa::Error');
+
+sub new {
+ my ($obj) = @_;
+ my $ref = {};
+
+ return bless($ref, $obj);
+}
+
+=head1 METHODS
+
+=head2 $error->as_string()
+
+Return the error as string, can directly be displayed to the user
+
+=cut
+
+sub as_string {
+ return "WWW::Efa error: No data returned by efa.vrr.de\n";
+}
+
+1;