NormalizedException
A helper for making exceptions play nice with PSR-3 logging
|
Basic normalized exception. More...
Public Member Functions | |
__construct (string $normalizedMessage, array $messageContext=[], int $code=0, Throwable $previous=null) | |
@stable to call | |
Public Member Functions inherited from Wikimedia\NormalizedException\INormalizedException | |
getNormalizedMessage () | |
Returns a normalized version of the error message, with PSR-3 style placeholders. | |
getMessageContext () | |
Returns the context data. | |
Basic normalized exception.
@newable @stable to extend
Wikimedia\NormalizedException\NormalizedException::__construct | ( | string | $normalizedMessage, |
array | $messageContext = [], | ||
int | $code = 0, | ||
Throwable | $previous = null ) |
@stable to call
string | $normalizedMessage | The exception message, with PSR-3 style placeholders. |
array | $messageContext | Message context, with values for the placeholders. |
int | $code | The exception code. |
Throwable | null | $previous | The previous throwable used for the exception chaining. |