diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-06-28 21:01:15 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-06-28 21:01:15 +0200 |
commit | 4e6c2251d31ec0c7fe1236df62aa3e1a2797fecb (patch) | |
tree | f37dfa068b73650373032fac4fad49ca80c6fa25 /lib/Travel/Routing/DE/VRR | |
parent | 7615088320ac1987ee7eaeeef6c81e68f3c549c0 (diff) |
Document exceptions
Diffstat (limited to 'lib/Travel/Routing/DE/VRR')
-rw-r--r-- | lib/Travel/Routing/DE/VRR/Exception.pod | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/lib/Travel/Routing/DE/VRR/Exception.pod b/lib/Travel/Routing/DE/VRR/Exception.pod new file mode 100644 index 0000000..3d690ec --- /dev/null +++ b/lib/Travel/Routing/DE/VRR/Exception.pod @@ -0,0 +1,57 @@ +=head1 NAME + +Travel::Routing::DE::VRR::Exception - Travel::Routing::DE::VRR Exceptions + +=head1 DESCRIPTION + +All Exceptions throws by Travel::Routing::DE::VRR::Exception are +Travel::Routing::DE::VRR::Exception objects created by Exception::Class(3pm). + +See Exception::Class::Base(3pm) for their common methods. + +=head1 LIST OF EXCEPTIONS + +=head2 Travel::Routing::DE::VRR::Exception::Setup + +An argument to B<new> had an invalid format. + +Additional methods: + +=over + +=item $exception->option + +The option in which the error occured. + +=item $exception->have + +The argument we got. + +=item $exception->want + +What kind of argument we want. + +=back + +=head2 Travel::Routing::DE::VRR::Exception::Net + +The HTTP request to the efa interface failed. Contains an HTTP::Response(3pm) +object describing the error in B<http_response>. + +=head2 Travel::Routing::DE::VRR::Exception::NoData + +We got no parsable data from efa.vrr.de + +=head2 Travel::Routing::DE::VRR::Exception::Ambiguous + +Our request contained ambiguous data. B<post_key> contains the relevant POST +key, B<possibilities> is a comma-separated string of possible key values (as +reported by efa.vrr.de). + +=head2 Travel::Routing::DE::VRR::Exception::NoConnections + +efa.vrr.de found no connections for our request. + +=head1 SEE ALSO + +Travel::Status::DE::VRR(3pm) |