A helper for making exceptions play nice with PSR-3 logging
No Matches
Wikimedia\NormalizedException\NormalizedException Class Reference

Basic normalized exception. More...

+ Inheritance diagram for Wikimedia\NormalizedException\NormalizedException:
+ Collaboration diagram for Wikimedia\NormalizedException\NormalizedException:

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.

Detailed Description

Basic normalized exception.

@newable @stable to extend

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\NormalizedException\NormalizedException::__construct ( string $normalizedMessage,
array $messageContext = [],
int $code = 0,
Throwable $previous = null )

@stable to call

string$normalizedMessageThe exception message, with PSR-3 style placeholders.
array$messageContextMessage context, with values for the placeholders.
int$codeThe exception code.
Throwable | null$previousThe previous throwable used for the exception chaining.

The documentation for this class was generated from the following file: