public function triggerHandler($type, $exception)
    {
        foreach ($this->handlers[$type] as $handler) {
            $result = call_user_func_array($handler, array($exception, $this->wei));
            if (true === $result) {
                return true;
            }
        }
        return false;
    }
public function triggerHandler($type, $exception)
    {
        foreach ($this->handlers[$type] as $handler) {
            $result = call_user_func_array($handler, array($exception, $this->wei));
            if (true === $result) {
                return true;
            }
        }
        return false;
    }
public function triggerHandler ( $ type , $ exception ) { foreach ( $ this -> handlers [ $ type ] as $ handler ) { $ result = call_user_func_array ( $ handler , array ( $ exception , $ this -> wei ) ) ; if ( true === $ result ) { return true ; } } return false ; }
Trigger a error handler

@param string $type The type of error handlers
@param \Exception|\Throwable $exception
@return bool
Trigger a error handler