Project

General

Profile

Actions

Bug #56998

closed

Streamline exceptions types in Logging API

Added by Steffen Müller over 10 years ago. Updated about 6 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