>
> Along the same lines as Roland for a question, why do you have the method
> return a hash instead of an object?
>
> my $err = $tx->error;
> die "$err->{code} response: $err->{message}" if $err->{code};
>
>
> vs
>
>
> my $err = $tx->error;
> die $err->code." response: ".$err->message if $err->code;
>
>
And what would that error class be? Mojo::Error? How would it relate to
Mojo::Exception? How do you raise those errors? If you want my opinion you
at least have to give me the full picture.
--
sebastian
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.