class JanrainApiCallError in Janrain Registration 8
The error to throw when an API call to Janrain ended unexpectedly.
Hierarchy
- class \Drupal\janrain_capture\Exception\JanrainApiCallError extends \Drupal\janrain_capture\Exception\RuntimeException
Expanded class hierarchy of JanrainApiCallError
1 file declares its use of JanrainApiCallError
File
- src/
Exception/ JanrainApiCallError.php, line 8
Namespace
Drupal\janrain_capture\ExceptionView source
class JanrainApiCallError extends \RuntimeException {
/**
* The response from Janrain.
*
* @var \stdClass
*/
protected $response;
/**
* {@inheritdoc}
*/
public function __construct($message, int $code, \stdClass $response) {
parent::__construct($message);
$this->response = $response;
}
/**
* {@inheritdoc}
*/
public function getResponse() : \stdClass {
return $this->response;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
JanrainApiCallError:: |
protected | property | The response from Janrain. | |
JanrainApiCallError:: |
public | function | ||
JanrainApiCallError:: |
public | function |