/**
  * @param object $error JSON decoded GoCardless API error
  */
 public function __construct($error)
 {
     $this->api_error = $error;
     parent::__construct($this->getErrorMessage(), $this->api_error->code);
 }
 public function __construct($message, $response)
 {
     $this->response = $response;
     parent::__construct($message);
 }