to_hash Returns a hash reference containing the data of the exception. Useful for conversion to JSON. =head1 SEE ALSO L<Throwable>, L<Throwable::Factory>, L<Exception::Class>, L<Exception::Base>,