public function __construct($message, $code = 0, \Exception $previous = null) { parent::__construct($message, null, $code, $previous); }
public function __construct($message, $missingScope, ResponseInterface $response) { $this->missingScope = $missingScope; parent::__construct($message, $response); }
/** * Instantiates a new authentication exception. * * @param string $userMessage The message displayed to the user * @param string $logMessage the message logged * * @return does not return a value. */ public function __construct($userMessage = '', $logMessage = '') { parent::__construct($userMessage, $logMessage); }
public function __construct(\Exception $priorException = null, $errorDetail = '') { $this->errorDetail = $errorDetail; $this->priorException = $priorException; parent::__construct($priorException = null, $errorDetail); }
/** * API Key Not Set Constructor. * * @param string $message * @param int $code * @param string|null $type * @param string|null $stripeCode * @param string|null $httpBody * @param array $jsonBody * @param array $params * @param array $headers */ public function __construct($message, $code = 500, $type = 'api_error', $stripeCode = null, $httpBody = null, $jsonBody = [], $params = [], $headers = []) { $message = 'No API key provided. (HINT: set your API key using ' . '"Stripe::setApiKey(<API-KEY>)". You can generate API keys from ' . 'the Stripe web interface. See https://stripe.com/api for ' . 'details, or email support@stripe.com if you have any questions.'; parent::__construct($message, $code, $type, $stripeCode, $httpBody, $jsonBody, $params, $headers); }
public function __construct($message = '', array $messageData = array(), $code = 0, \Exception $previous = null) { parent::__construct($message, $code, $previous); $this->setSafeMessage($message, $messageData); }