{"record":{"id":"0ed3a6a7fc03bb49","repo":"Seldaek/monolog","slug":"the-nested-handler-of-type-class-does-not-suppor","errorCode":null,"errorMessage":"The nested handler of type {class} does not support formatters.","messagePattern":"The nested handler of type (.+?) does not support formatters\\.","errorType":"exception","errorClass":"UnexpectedValueException","httpStatus":null,"severity":"error","filePath":"src/Monolog/Handler/FilterHandler.php","lineNumber":178,"sourceCode":"            $this->handler = $handler;\n        }\n\n        return $this->handler;\n    }\n\n    /**\n     * @inheritDoc\n     */\n    public function setFormatter(FormatterInterface $formatter): HandlerInterface\n    {\n        $handler = $this->getHandler();\n        if ($handler instanceof FormattableHandlerInterface) {\n            $handler->setFormatter($formatter);\n\n            return $this;\n        }\n\n        throw new \\UnexpectedValueException('The nested handler of type '.\\get_class($handler).' does not support formatters.');\n    }\n\n    /**\n     * @inheritDoc\n     */\n    public function getFormatter(): FormatterInterface\n    {\n        $handler = $this->getHandler();\n        if ($handler instanceof FormattableHandlerInterface) {\n            return $handler->getFormatter();\n        }\n\n        throw new \\UnexpectedValueException('The nested handler of type '.\\get_class($handler).' does not support formatters.');\n    }\n\n    public function reset(): void\n    {\n        $this->resetProcessors();","sourceCodeStart":160,"sourceCodeEnd":196,"githubUrl":"https://github.com/Seldaek/monolog/blob/57eb1028342134e701e77c617565d51b6e5a2a53/src/Monolog/Handler/FilterHandler.php#L160-L196","documentation":"Error \"The nested handler of type {class} does not support formatters.\" thrown in Seldaek/monolog.","triggerScenarios":"Thrown at src/Monolog/Handler/FilterHandler.php:178 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"57eb1028342134e701e77c617565d51b6e5a2a53","analyzedAt":"2026-08-17T02:36:30.259Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}