public static function get_subject($exception) {
		$application = null;

		try {
			$application = \Skeleton\Core\Application::get();
		} catch (\Exception $e) {}

		if ($application === null) {
			$hostname = 'unknown';
			$name = 'unknown';
		} else {
			$hostname = $application->hostname;
			$name = $application->name;
		}

		if ($exception instanceof \ErrorException) {
			$subject = get_class($exception) . ' (' . \Skeleton\Error\Util\Misc::translate_error_code($exception->getSeverity()) . ') on ' . $hostname . ' (' . $name . ')';
		} else {
			$subject = get_class($exception) . ' on ' . $hostname . ' (' . $name . ')';
		}

		return $subject;
	}