10 use Magento\Framework\Exception\ErrorMessage;
98 $httpCode = self::HTTP_BAD_REQUEST,
105 if ($httpCode < 400 || $httpCode > 599) {
106 throw new \InvalidArgumentException(sprintf(
'The specified HTTP code "%d" is invalid.', $httpCode));
110 $this->_httpCode = $httpCode;
112 $this->_name =
$name;
114 $this->_stackTrace = $stackTrace;
__construct(Phrase $phrase, $code=0, $httpCode=self::HTTP_BAD_REQUEST, array $details=[], $name='', $errors=null, $stackTrace=null)
const HTTP_METHOD_NOT_ALLOWED
const FAULT_CODE_RECEIVER
const HTTP_NOT_ACCEPTABLE
const HTTP_INTERNAL_ERROR
if(!isset($_GET['name'])) $name