$fieldName, 'value' => $fieldValue]), $cause ); } /** * Creates an InputException for a missing required field. * * @param string $fieldName Name of the missing required field. * @return \Magento\Framework\Exception\InputException */ public static function requiredField($fieldName) { return new self( new Phrase('%fieldName is a required field.', ['fieldName' => $fieldName]) ); } }