本文整理汇总了PHP中ApiError::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP ApiError::__construct方法的具体用法?PHP ApiError::__construct怎么用?PHP ApiError::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ApiError
的用法示例。
在下文中一共展示了ApiError::__construct方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null)
{
parent::__construct();
$this->reason = $reason;
$this->fieldPath = $fieldPath;
$this->trigger = $trigger;
$this->errorString = $errorString;
$this->ApiErrorType = $ApiErrorType;
}
示例2: __construct
public function __construct($reason = null, $rateName = null, $rateScope = null, $retryAfterSeconds = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null)
{
parent::__construct();
$this->reason = $reason;
$this->rateName = $rateName;
$this->rateScope = $rateScope;
$this->retryAfterSeconds = $retryAfterSeconds;
$this->fieldPath = $fieldPath;
$this->trigger = $trigger;
$this->errorString = $errorString;
$this->ApiErrorType = $ApiErrorType;
}
示例3: __construct
public function __construct($reason = null, $enclosingId = null, $limit = null, $accountLimitType = null, $existingCount = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null)
{
parent::__construct();
$this->reason = $reason;
$this->enclosingId = $enclosingId;
$this->limit = $limit;
$this->accountLimitType = $accountLimitType;
$this->existingCount = $existingCount;
$this->fieldPath = $fieldPath;
$this->trigger = $trigger;
$this->errorString = $errorString;
$this->ApiErrorType = $ApiErrorType;
}
示例4: __construct
public function __construct($reason = null, $functionString = null, $operatorName = null, $operandIndex = null, $operandValue = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null)
{
parent::__construct();
$this->reason = $reason;
$this->functionString = $functionString;
$this->operatorName = $operatorName;
$this->operandIndex = $operandIndex;
$this->operandValue = $operandValue;
$this->fieldPath = $fieldPath;
$this->trigger = $trigger;
$this->errorString = $errorString;
$this->ApiErrorType = $ApiErrorType;
}
示例5: __construct
public function __construct($key = null, $externalPolicyName = null, $externalPolicyUrl = null, $externalPolicyDescription = null, $isExemptable = null, $violatingParts = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null)
{
parent::__construct();
$this->key = $key;
$this->externalPolicyName = $externalPolicyName;
$this->externalPolicyUrl = $externalPolicyUrl;
$this->externalPolicyDescription = $externalPolicyDescription;
$this->isExemptable = $isExemptable;
$this->violatingParts = $violatingParts;
$this->fieldPath = $fieldPath;
$this->trigger = $trigger;
$this->errorString = $errorString;
$this->ApiErrorType = $ApiErrorType;
}
示例6: __construct
public function __construct($fieldPath = null, $trigger = null, $errorString = null)
{
parent::__construct();
$this->fieldPath = $fieldPath;
$this->trigger = $trigger;
$this->errorString = $errorString;
}
示例7: __construct
public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL)
{
if (get_parent_class('UniqueError')) {
parent::__construct();
}
$this->fieldPath = $fieldPath;
$this->trigger = $trigger;
$this->errorString = $errorString;
$this->ApiErrorType = $ApiErrorType;
}
示例8: __construct
public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL)
{
parent::__construct();
$this->fieldPath = $fieldPath;
$this->trigger = $trigger;
$this->errorString = $errorString;
$this->ApiErrorType = $ApiErrorType;
}
示例9: __construct
/**
* UnauthorizedException constructor.
* @param null|string $message
*/
public function __construct($message)
{
parent::__construct($message, 401);
}
示例10: __construct
public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL)
{
if (get_parent_class('AdUnitHierarchyError')) {
parent::__construct();
}
$this->reason = $reason;
$this->fieldPath = $fieldPath;
$this->trigger = $trigger;
$this->errorString = $errorString;
$this->ApiErrorType = $ApiErrorType;
}
示例11: __construct
public function __construct($reason = NULL, $adGroupId = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL)
{
if (get_parent_class('AdGroupServiceError')) {
parent::__construct();
}
$this->reason = $reason;
$this->adGroupId = $adGroupId;
$this->fieldPath = $fieldPath;
$this->trigger = $trigger;
$this->errorString = $errorString;
$this->ApiErrorType = $ApiErrorType;
}
示例12: __construct
public function __construct($key = NULL, $externalPolicyName = NULL, $externalPolicyUrl = NULL, $externalPolicyDescription = NULL, $isExemptable = NULL, $violatingParts = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL)
{
if (get_parent_class('PolicyViolationError')) {
parent::__construct();
}
$this->key = $key;
$this->externalPolicyName = $externalPolicyName;
$this->externalPolicyUrl = $externalPolicyUrl;
$this->externalPolicyDescription = $externalPolicyDescription;
$this->isExemptable = $isExemptable;
$this->violatingParts = $violatingParts;
$this->fieldPath = $fieldPath;
$this->trigger = $trigger;
$this->errorString = $errorString;
$this->ApiErrorType = $ApiErrorType;
}
示例13: __construct
public function __construct($reason = null, $workflowErrorMessage = null, $fieldPath = null, $trigger = null, $errorString = null)
{
parent::__construct();
$this->reason = $reason;
$this->workflowErrorMessage = $workflowErrorMessage;
$this->fieldPath = $fieldPath;
$this->trigger = $trigger;
$this->errorString = $errorString;
}
示例14: __construct
/**
* BadRequestException constructor.
* @param null $message
*/
public function __construct($message = null)
{
parent::__construct($message, 400);
}