src/PhpConsole/Dispatcher/Errors.php
public function dispatchException($exception) {
		if($this->isActive()) {
			if($this->dispatchPreviousExceptions && $exception->getPrevious()) {
				$this->dispatchException($exception->getPrevious());
			}
			$message = new ErrorMessage();
			$message->code = $exception->getCode();
			$message->class = get_class($exception);
			$message->data = $this->dumper->dump($exception->getMessage());
			$message->file = $exception->getFile();
			$message->line = $exception->getLine();
			$message->trace = self::fetchTrace($exception->getTrace(), $message->file, $message->line);
			$this->sendMessage($message);
		}
	}
public function dispatchException($exception) {
		if($this->isActive()) {
			if($this->dispatchPreviousExceptions && $exception->getPrevious()) {
				$this->dispatchException($exception->getPrevious());
			}
			$message = new ErrorMessage();
			$message->code = $exception->getCode();
			$message->class = get_class($exception);
			$message->data = $this->dumper->dump($exception->getMessage());
			$message->file = $exception->getFile();
			$message->line = $exception->getLine();
			$message->trace = self::fetchTrace($exception->getTrace(), $message->file, $message->line);
			$this->sendMessage($message);
		}
	}
public function dispatchException ( $ exception ) { if ( $ this -> isActive ( ) ) { if ( $ this -> dispatchPreviousExceptions && $ exception -> getPrevious ( ) ) { $ this -> dispatchException ( $ exception -> getPrevious ( ) ) ; } $ message = new ErrorMessage ( ) ; $ message -> code = $ exception -> getCode ( ) ; $ message -> class = get_class ( $ exception ) ; $ message -> data = $ this -> dumper -> dump ( $ exception -> getMessage ( ) ) ; $ message -> file = $ exception -> getFile ( ) ; $ message -> line = $ exception -> getLine ( ) ; $ message -> trace = self :: fetchTrace ( $ exception -> getTrace ( ) , $ message -> file , $ message -> line ) ; $ this -> sendMessage ( $ message ) ; } }
Send exception message to client
@param \Exception|\Throwable $exception
Send exception message to client