NAME

Net::OpenXchange::X::OX - Exception class for OpenXchange errors

VERSION

version 0.001

SYNOPSIS

Net::OpenXchange::X::OX->throw({
    error => $resdataref->{error},
    error_params => $resdataref->{error_params},
});

Net::OpenXchange::X::OX is an exception class which is thrown when the JSON response body from OpenXchange indicates an error.

ATTRIBUTES

error

Required, the error field of the response

error_params

Required, the error_params field of the response

message

Will be constructed automatically by interpolating the values of error_params into error using sprintf

SEE ALSO

http://oxpedia.org/wiki/index.php?title=HTTP_API#Error_handling

AUTHOR

Maximilian Gass <maximilian.gass@credativ.de>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Maximilian Gass.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.