src/Console/Kernel.php
/**
	 * Handles the given exception from within a console command.
	 *
	 * @param Exception|Error $ex
	 * @return void
	 */
Handles the given exception from within a console command.
@param Exception|Error $ex
@return void
Handles the given exception from within a console command . @param Exception|Error $ex @return void
public function handleException($ex) {
		if (!($ex instanceof RuntimeException) && is_mode('production')) {
			$error = HorizonError::fromException($ex);
			$handler = ErrorMiddleware::getErrorHandler();
			if (config('errors.console_logging', true)) {
				$handler->log($error);
			}
			if (config('errors.console_reporting', true)) {
				$handler->report($error);
			}
		}
		$this->consoleApp->renderException($ex, $this->output);
		abort($this->getExitCodeForThrowable($ex));
	}
public function handleException ( $ ex ) { if ( ! ( $ ex instanceof RuntimeException ) && is_mode ( 'production' ) ) { $ error = HorizonError :: fromException ( $ ex ) ; $ handler = ErrorMiddleware :: getErrorHandler ( ) ; if ( config ( 'errors.console_logging' , true ) ) { $ handler -> log ( $ error ) ; } if ( config ( 'errors.console_reporting' , true ) ) { $ handler -> report ( $ error ) ; } } $ this -> consoleApp -> renderException ( $ ex , $ this -> output ) ; abort ( $ this -> getExitCodeForThrowable ( $ ex ) ) ; }
Handles the given exception from within a console command.
Handles the given exception from within a console command .