Rev 1086 | Rev 1203 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1086 | Rev 1201 | ||
---|---|---|---|
Line 21... | Line 21... | ||
21 | 21 | ||
22 | // phpcs:disable PSR1.Files.SideEffects |
22 | // phpcs:disable PSR1.Files.SideEffects |
23 | \defined('INSIDE_OIDPLUS') or die; |
23 | \defined('INSIDE_OIDPLUS') or die; |
24 | // phpcs:enable PSR1.Files.SideEffects |
24 | // phpcs:enable PSR1.Files.SideEffects |
25 | 25 | ||
- | 26 | /** |
|
- | 27 | * Every Exception that is thrown in OIDplus should be an OIDplusException. |
|
- | 28 | */ |
|
26 | class OIDplusException extends \Exception { |
29 | class OIDplusException extends \Exception { |
27 | 30 | ||
- | 31 | /** |
|
- | 32 | * @return string |
|
- | 33 | */ |
|
- | 34 | public function getHtmlMessage(): string { |
|
- | 35 | return htmlentities($this->getMessage()); |
|
- | 36 | } |
|
- | 37 | ||
28 | } |
38 | } |
29 | 39 |