| 1 | package Bosch::RCPPlus::AuthError; | ||
| 2 | use strict; | ||
| 3 | |||
| 4 | sub new | ||
| 5 | { | ||
| 6 | my ($proto, $error) = @_; | ||
| 7 | my $class = ref($proto) || $proto; | ||
| 8 | |||
| 9 | my $self = { | ||
| 10 | error => $error, | ||
| 11 | }; | ||
| 12 | |||
| 13 | bless ($self, $class); | ||
| 14 | return $self; | ||
| 15 | } | ||
| 16 | |||
| 17 | sub error | ||
| 18 | { | ||
| 19 | my ($proto) = @_; | ||
| 20 | |||
| 21 | return $proto->{error} | ||
| 22 | } | ||
| 23 | |||
| 24 | 1; |