/** * Constructor */ public function __construct() { $developerMessage = self::DEVELOPER_MESSAGE; $humanMessage = self::HUMAN_MESSAGE; $statusCode = self::STATUS_CODE; $errorCode = self::ERROR_CODE; parent::__construct($statusCode, $errorCode, $developerMessage, $humanMessage); }
/** * InvalidArgumentHttpException constructor. */ public function __construct($message) { parent::__construct('400', 0, $message, $message); }
/** * @param string $developerMessage * @param string $humanMessage */ public function __construct($developerMessage, $humanMessage) { parent::__construct(500, null, $developerMessage, $humanMessage); }