You are here

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
JanrainCaptureApi.php in src/JanrainCaptureApi.php

File

src/Exception/JanrainApiCallError.php, line 8

Namespace

Drupal\janrain_capture\Exception
View 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