*/ declare(strict_types = 1); /** * Custom exception class for non-existing files. */ final 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; } }