Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (Phrase $phrase=null, \Exception $cause=null, $code=0) | |
![]() | |
__construct (Phrase $phrase, \Exception $cause=null, $code=0) | |
addError (Phrase $phrase) | |
addException (LocalizedException $exception) | |
wasErrorAdded () | |
getErrors () | |
![]() | |
__construct (Phrase $phrase, \Exception $cause=null, $code=0) | |
getRawMessage () | |
getParameters () | |
getLogMessage () | |
Static Public Member Functions | |
static | invalidFieldValue ($fieldName, $fieldValue, \Exception $cause=null) |
static | requiredField ($fieldName) |
Data Fields | |
const | DEFAULT_MESSAGE = 'One or more input exceptions have occurred.' |
const | INVALID_FIELD_RANGE = 'The %fieldName value of "%value" must be between %minValue and %maxValue' |
const | INVALID_FIELD_MIN_VALUE = 'The %fieldName value of "%value" must be greater than or equal to %minValue.' |
const | INVALID_FIELD_MAX_VALUE = 'The %fieldName value of "%value" must be less than or equal to %maxValue.' |
const | INVALID_FIELD_VALUE = 'Invalid value of "%value" provided for the %fieldName field.' |
const | REQUIRED_FIELD = '"%fieldName" is required. Enter and try again.' |
Additional Inherited Members | |
![]() | |
$errors = [] | |
$originalPhrase | |
![]() | |
$phrase | |
$logMessage | |
Exception to be thrown when there is an issue with the Input to a function call.
@api
Definition at line 17 of file InputException.php.
__construct | ( | Phrase | $phrase = null , |
\Exception | $cause = null , |
||
$code = 0 |
|||
) |
Initialize the input exception.
\Magento\Framework\Phrase | $phrase | |
\Exception | $cause | |
int | $code |
Definition at line 56 of file InputException.php.
|
static |
Creates an InputException for when a specific field was provided with an invalid value.
string | $fieldName | Name of the field which had an invalid value provided. |
string | $fieldValue | The invalid value that was provided for the field. |
\Exception | $cause | Cause of the InputException |
Definition at line 72 of file InputException.php.
|
static |
Creates an InputException for a missing required field.
string | $fieldName | Name of the missing required field. |
Definition at line 89 of file InputException.php.
const DEFAULT_MESSAGE = 'One or more input exceptions have occurred.' |
Definition at line 22 of file InputException.php.
const INVALID_FIELD_MAX_VALUE = 'The %fieldName value of "%value" must be less than or equal to %maxValue.' |
Definition at line 37 of file InputException.php.
const INVALID_FIELD_MIN_VALUE = 'The %fieldName value of "%value" must be greater than or equal to %minValue.' |
Definition at line 32 of file InputException.php.
const INVALID_FIELD_RANGE = 'The %fieldName value of "%value" must be between %minValue and %maxValue' |
Definition at line 27 of file InputException.php.
const INVALID_FIELD_VALUE = 'Invalid value of "%value" provided for the %fieldName field.' |
Definition at line 42 of file InputException.php.
const REQUIRED_FIELD = '"%fieldName" is required. Enter and try again.' |
Definition at line 47 of file InputException.php.