@api
- Since
- 100.0.2
Definition at line 17 of file LocalizedException.php.
◆ __construct()
__construct |
( |
Phrase |
$phrase, |
|
|
\Exception |
$cause = null , |
|
|
|
$code = 0 |
|
) |
| |
- Parameters
-
\Magento\Framework\Phrase | $phrase | |
\Exception | $cause | |
int | $code | |
Definition at line 34 of file LocalizedException.php.
37 parent::__construct(
$phrase->render(), intval(
$code), $cause);
◆ getLogMessage()
Get the un-localized message, but with the parameters filled in
- Returns
- string
Definition at line 65 of file LocalizedException.php.
67 if ($this->logMessage ===
null) {
68 $renderer =
new Placeholder();
◆ getParameters()
Get parameters, corresponding to placeholders in raw exception message
- Returns
- array
Definition at line 55 of file LocalizedException.php.
57 return $this->phrase->getArguments();
◆ getRawMessage()
Get the un-processed message, without the parameters filled in
- Returns
- string
Definition at line 45 of file LocalizedException.php.
47 return $this->phrase->getText();
◆ $logMessage
◆ $phrase
The documentation for this class was generated from the following file: