public static function Exception ($exception, $exit = TRUE) {
		if (static::$originalDebugClass) {
			$dumpedValue = static::dumpHandler(
				$exception, NULL, ['bar' => !$exit, 'backtraceIndex' => 1]
			);
			if (static::$debugging) {
				echo $dumpedValue;
			} else {
				static::storeLogRecord($dumpedValue, \MvcCore\IDebug::EXCEPTION);
			}
		} else {
			@call_user_func_array(static::$handlers['exceptionHandler'], func_get_args());
		}
	}
public static function Exception ($exception, $exit = TRUE) {
		if (static::$originalDebugClass) {
			$dumpedValue = static::dumpHandler(
				$exception, NULL, ['bar' => !$exit, 'backtraceIndex' => 1]
			);
			if (static::$debugging) {
				echo $dumpedValue;
			} else {
				static::storeLogRecord($dumpedValue, \MvcCore\IDebug::EXCEPTION);
			}
		} else {
			@call_user_func_array(static::$handlers['exceptionHandler'], func_get_args());
		}
	}
public static function Exception ( $ exception , $ exit = TRUE ) { if ( static :: $ originalDebugClass ) { $ dumpedValue = static :: dumpHandler ( $ exception , NULL , [ 'bar' => ! $ exit , 'backtraceIndex' => 1 ] ) ; if ( static :: $ debugging ) { echo $ dumpedValue ; } else { static :: storeLogRecord ( $ dumpedValue , \ MvcCore \ IDebug :: EXCEPTION ) ; } } else { @ call_user_func_array ( static :: $ handlers [ 'exceptionHandler' ] , func_get_args ( ) ) ; } }
Print caught exception in browser.
In non-development mode - store dumped exception in `exception.log`.
@param \Exception|\Error|\Throwable|array $exception
@param bool $exit
@return void
Print caught exception in browser . In non - development mode - store dumped exception in exception . log .