Class::AbstractLogic::Result - Result for a Logic Object Call
An object of this class is returned when a method on a logic object got called. You should not create this object directly.
Constructor,
Calls the $code reference with the @arguments and builds a Result object. If this is used as an object- instead of a class-method, it just resets the objects value appropriately.
$code
@arguments
Throws an exception. Since this class knows how to handle exceptions, it also is the one that knows how to throw them. No matter if class or object method, this simply throws an Exception with the given values.
Return the boolean value telling if this result caught an exception, or succeeded.
Returns the captured result value. Will be undef if an exception was thrown.
undef
These hold the corresponding values or undef if the request succeeded. The exception is the original exception object, error the message and key the specified error key.
exception
error
key
Class::AbstractLogic
Robert 'phaylon' Sedlacek <phaylon@dunkelheit.at>
<phaylon@dunkelheit.at>
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
To install Class::AbstractLogic, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Class::AbstractLogic
CPAN shell
perl -MCPAN -e shell install Class::AbstractLogic
For more information on module installation, please visit the detailed CPAN module installation guide.