Вход Регистрация
Файл: sngine-v2.8/Script/includes/libs/Stripe/lib/Exception/InvalidRequestException.php
Строк: 64
<?php

namespace StripeException;

/**
 * InvalidRequestException is thrown when a request is initiated with invalid
 * parameters.
 */
class InvalidRequestException extends ApiErrorException
{
    protected 
$stripeParam;

    
/**
     * Creates a new InvalidRequestException exception.
     *
     * @param string $message the exception message
     * @param null|int $httpStatus the HTTP status code
     * @param null|string $httpBody the HTTP body as a string
     * @param null|array $jsonBody the JSON deserialized body
     * @param null|array|StripeUtilCaseInsensitiveArray $httpHeaders the HTTP headers array
     * @param null|string $stripeCode the Stripe error code
     * @param null|string $stripeParam the parameter related to the error
     *
     * @return InvalidRequestException
     */
    
public static function factory(
        
$message,
        
$httpStatus null,
        
$httpBody null,
        
$jsonBody null,
        
$httpHeaders null,
        
$stripeCode null,
        
$stripeParam null
    
) {
        
$instance parent::factory($message$httpStatus$httpBody$jsonBody$httpHeaders$stripeCode);
        
$instance->setStripeParam($stripeParam);

        return 
$instance;
    }

    
/**
     * Gets the parameter related to the error.
     *
     * @return null|string
     */
    
public function getStripeParam()
    {
        return 
$this->stripeParam;
    }

    
/**
     * Sets the parameter related to the error.
     *
     * @param null|string $stripeParam
     */
    
public function setStripeParam($stripeParam)
    {
        
$this->stripeParam $stripeParam;
    }
}
Онлайн: 0
Реклама