Kernel::GenericInterface::ErrorHandling - Error object to execute registered error handler modules
create an object. Do not create it directly, instead use:
use Kernel::System::ObjectManager; local $Kernel::OM = Kernel::System::ObjectManager->new(); my $ErrorObject = $Kernel::OM->Get('Kernel::GenericInterface::ErrorHandling');
Receives the current web service and operation or invoker data, as well as the result of the HandleError method from the related invoker or operation. The data will be printed via the debugger. For every registered error handler its configuration will be checked to determine if it should be called.
my $Result = $ErrorObject->HandleError( WebserviceID => 1, # ID of the configured remote web service to use WebserviceConfig => $WebserviceConfig, CommunicationID => '02a381c622d5f93df868a42151db1983', # communication ID of current debugger instance CommunicationType => 'Requester', # May be 'Requester' or 'Provider' CommunicationName => 'CreateTicket', # optional, name of Invoker or Operation ErrorStage => 'MappingIn', # stage where error occurred Summary => $ErrorSummary, Data => $ErrorData, PastExecutionData => $PastExecutionDataStructure, # optional ); $Result = { Success => 0, ErrorMessage => $ErrorSummary, # returns summary from call };
This software is part of the OTRS project (https://otrs.org/).
This software comes with ABSOLUTELY NO WARRANTY. For details, see the enclosed file COPYING for license information (GPL). If you did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.