From db5692cec091ae89663c1ab12cd23376a5ef17a0 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Wed, 5 Aug 2020 16:18:39 +0200 Subject: [PATCH] Add new exception MDOutputBufferNotStarted --- .../generic/MDOutputBufferNotStarted.php | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 exceptions/generic/MDOutputBufferNotStarted.php diff --git a/exceptions/generic/MDOutputBufferNotStarted.php b/exceptions/generic/MDOutputBufferNotStarted.php new file mode 100644 index 0000000..38f7567 --- /dev/null +++ b/exceptions/generic/MDOutputBufferNotStarted.php @@ -0,0 +1,28 @@ + + */ +declare(strict_types = 1); + +/** + * Custom exception class for non-existing files. + */ +class MDOutputBufferNotStarted extends Exception { + + /** + * Error message. + * + * @return string + */ + public function errorMessage() { + //error message + $errorMsg = 'Output buffer has not yet been started, is to be used: ' . $this->getMessage(); + return $errorMsg; + + } + +}