summaryrefslogtreecommitdiff
path: root/lib/Travel/Routing/DE/VRR/Exception.pod
blob: aba1197ce2a099e44447cf57e20e452e0bee4e01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
=head1 NAME

Travel::Routing::DE::VRR::Exception - Travel::Routing::DE::VRR Exceptions

=head1 DESCRIPTION

All Exceptions throws by Travel::Routing::DE::VRR 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::Routing::DE::VRR(3pm)