CHips L MINI SHELL

CHips L pro

Current Path : /proc/2/root/usr/local/share/perl5/JSON/WebToken/
Upload File :
Current File : //proc/2/root/usr/local/share/perl5/JSON/WebToken/Exception.pm

package JSON::WebToken::Exception;

use strict;
use warnings;
use overload (
    q|""| => \&to_string,
);

use Carp qw/croak/;

sub throw {
    my ($class, %args) = @_;
    my $self = bless \%args, $class;
    croak $self;
}

sub code { $_[0]->{code} }
sub message { $_[0]->{message} }

sub to_string {
    $_[0]->message;
}

1;
__END__



Copyright 2K16 - 2K18 Indonesian Hacker Rulez