NAME
Siebel::COM::Exception::DataServer - Moose role to apply proper error checking for Siebel COM DataServer
SYNOPSIS
use Moose;
with 'Siebel::COM::Exception::DataServer';
DESCRIPTION
This is a Moose Role to implement proper error checking for classes based on Siebel COM DataServer.
EXPORT
None by default.
ATTRIBUTES
return_code
An reference to a Win32::OLE::Variant object. It is used check and maintain return codes for almost all method invocation done by classes that uses Siebel::COM::Exception::DataServer.
METHODS
get_return_code
Returns the return_code
attribute value.
check_error
Checks the attribute value of return_code
attribute. If it is different from zero, an exception will be raised with die
.
The message used by die
will contain the return_code
value plus the error message associated.
SEE ALSO
AUTHOR
Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 of Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org<>
This file is part of Siebel COM project.
Siebel COM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Siebel COM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Siebel COM. If not, see <http://www.gnu.org/licenses/>.