X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fp5-File-KDBX;a=blobdiff_plain;f=lib%2FFile%2FKDBX%2FError.pm;h=d12d0806588e35ae67bddfe1148847fc504055c8;hp=d23837a8d3ba5018a89cdf7ae7a23a198d5e70b6;hb=37b09e0f2832514b33de4499a83f22d5ffe7c0a3;hpb=8a37f035ef35682b764c34e7b3c61ce03318b1c7 diff --git a/lib/File/KDBX/Error.pm b/lib/File/KDBX/Error.pm index d23837a..d12d080 100644 --- a/lib/File/KDBX/Error.pm +++ b/lib/File/KDBX/Error.pm @@ -112,34 +112,26 @@ sub details { Get the value of C when the exception was created. -=cut - -sub errno { $_[0]->{errno} } - =attr previous Get the value of C<$@> (i.e. latest exception) at the time the exception was created. - -=cut - -sub previous { $_[0]->{previous} } - =attr trace Get a stack trace indicating where in the code the exception was created. =cut -sub trace { $_[0]->{trace} // [] } - =attr type Get the exception type, if any. =cut -sub type { $_[0]->details->{type} // '' } +sub errno { $_[0]->{errno} } +sub previous { $_[0]->{previous} } +sub trace { $_[0]->{trace} // [] } +sub type { $_[0]->details->{type} // '' } =method to_string