WebService::MyGengo::Exception - Exception class for the WebService::MyGengo library.
eval { my $job = $client->get_job( "ARGH!" ) }; if ( blessed($@) eq 'WebService::MyGengo::Exception' ) { printf "Exception: %s\n", $@->message; }
All exceptions thrown by operations in the WebService::MyGengo library will be instances of this object.
Note: Unless specified otherwise, errors from the transport layer are not caught and wrapped with this class.
The error message.
Object stringification is overloaded to return this attribute.
eval { <something that throws an Exception> }; print "Oops: '$@'\n"; # Prints the Exception message
A stacktrace from the point where the Exception was thrown.
The previous_exception attribute holds any previous exceptions.
See: Throwable
Nathaniel Heinrichs
Copyright (c) 2011, Nathaniel Heinrichs <nheinric-at-cpan.org>. All rights reserved.
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
To install WebService::MyGengo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::MyGengo
CPAN shell
perl -MCPAN -e shell install WebService::MyGengo
For more information on module installation, please visit the detailed CPAN module installation guide.