3 final class HarbormasterMessageException
extends Exception
{
6 private $body = array();
8 public function __construct($title, $body = null) {
9 $this->setTitle($title);
10 $this->appendParagraph($body);
19 public function setTitle($title) {
20 $this->title
= $title;
24 public function getTitle() {
28 public function appendParagraph($description) {
29 $this->body
[] = $description;
33 public function getBody() {
37 public function newDisplayString() {
38 $title = $this->getTitle();
40 $body = $this->getBody();
41 $body = implode("\n\n", $body);
43 return pht('%s: %s', $title, $body);