|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (Phrase $phrase, \Exception $cause=null, $code=0, ValidationResult $validationResult=null) | |
| getErrors () | |
Public Member Functions inherited from LocalizedException | |
| __construct (Phrase $phrase, \Exception $cause=null, $code=0) | |
| getRawMessage () | |
| getParameters () | |
| getLogMessage () | |
Additional Inherited Members | |
Protected Attributes inherited from LocalizedException | |
| $phrase | |
| $logMessage | |
Validation exception with possibility to set several error messages
ValidationException exists to be compatible with the Web-API (SOAP and REST) implementation which currently uses Magento\Framework\Exception\AggregateExceptionInterface returned as a result of ServiceContracts call to support Multi-Error response.
@api
Definition at line 21 of file ValidationException.php.
| __construct | ( | Phrase | $phrase, |
| \Exception | $cause = null, |
||
$code = 0, |
|||
| ValidationResult | $validationResult = null |
||
| ) |
| Phrase | $phrase | |
| \Exception | $cause | |
| int | $code | |
| ValidationResult | null | $validationResult |
Definition at line 34 of file ValidationException.php.
| getErrors | ( | ) |
Returns LocalizedException[] array to be compatible with current Implementation in Web API which relies on this behavior
Implements AggregateExceptionInterface.
Definition at line 47 of file ValidationException.php.