This PR adds exception classes to a new Exception namespace that can take translation strings to be used when rendering user-facing error messages.
These exceptions both implement a new TranslationExceptionInterface and use a TranslationExceptionTrait. The classes are identical, except they extend different base exceptions:
This PR adds exception classes to a new
Exception
namespace that can take translation strings to be used when rendering user-facing error messages.These exceptions both implement a new
TranslationExceptionInterface
and use aTranslationExceptionTrait
. The classes are identical, except they extend different base exceptions:TranslationLogicException
extends\LogicException
TranslationRuntimeException
extends\RuntimeException