<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def consult_error_hook(self, item_session: ItemSession, error: BaseException):
        '''Return scripting action when an error occured.'''
        try:
            return self.hook_dispatcher.call(
                PluginFunctions.handle_error, item_session, error)
        except HookDisconnected:
            return Actions.NORMAL