Differential D21698 Diff 51708 src/applications/harbormaster/exception/HarbormasterRestartException.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/exception/HarbormasterRestartException.php
<?php | <?php | ||||
final class HarbormasterRestartException extends Exception { | final class HarbormasterRestartException extends Exception { | ||||
private $title; | private $title; | ||||
private $body = array(); | private $body = array(); | ||||
public function __construct($title, $body = null) { | public function __construct($title, $body = null) { | ||||
$this->setTitle($title); | $this->setTitle($title); | ||||
$this->appendParagraph($body); | $this->appendParagraph($body); | ||||
parent::__construct($title); | parent::__construct( | ||||
pht( | |||||
'%s: %s', | |||||
$title, | |||||
$body)); | |||||
} | } | ||||
public function setTitle($title) { | public function setTitle($title) { | ||||
$this->title = $title; | $this->title = $title; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getTitle() { | public function getTitle() { | ||||
Show All 22 Lines |