protected function format_exception( Exception $exception ) {
		$string = get_class( $exception );

		if ( ! empty( $exception->getMessage() ) ) {
			$string .= " : {$exception->getMessage()}";
		}

		if ( ! empty( $exception->getCode() ) ) {
			$string .= " (#{$exception->getCode()})";
		}

		return $string;
	}
protected function format_exception( Exception $exception ) {
		$string = get_class( $exception );

		if ( ! empty( $exception->getMessage() ) ) {
			$string .= " : {$exception->getMessage()}";
		}

		if ( ! empty( $exception->getCode() ) ) {
			$string .= " (#{$exception->getCode()})";
		}

		return $string;
	}
protected function format_exception ( Exception $ exception ) { $ string = get_class ( $ exception ) ; if ( ! empty ( $ exception -> getMessage ( ) ) ) { $ string .= " : {$exception->getMessage()}" ; } if ( ! empty ( $ exception -> getCode ( ) ) ) { $ string .= " (#{$exception->getCode()})" ; } return $ string ; }
Format an exception error string.

@param Exception $exception

@return string
Format an exception error string .