Project

General

Profile

Actions

Bug #56998

closed

Streamline exceptions types in Logging API

Added by Steffen Müller about 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Logging
Target version:
-
Start date:
2014-03-17
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

@LogManager::addWriter() and @LogManager::addProcessor() catch exceptions and rethrow them as \RangeException. This is not a sufficient type, because:
  • calling makeInstance() in addWriter() and addProcessor() could trigger \InvalidArgumentException
  • \RangeException in LogLevel::validateLevel() has been replaced by \Psr\Log\InvalidArgumentException.
Actions

Also available in: Atom PDF