public function registerExceptionHandler(ExceptionHandler $handler) { $this->exceptionHandlers[] = $handler; }