This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/modules/oauth/classes/Kohana/OAuth/Request/Exception.php
2013-05-27 22:10:41 +10:00

28 lines
492 B
PHP

<?php defined('SYSPATH') or die('No direct script access.');
class Kohana_OAuth_Request_Exception extends Kohana_OAuth_Exception {
/**
* @var string response body
*/
protected $body;
public function __construct($message, array $variables = NULL, $code = 0, $body = NULL)
{
$this->body = $body;
return parent::__construct($message, $variables, $code);
}
/**
* Get the response body.
*
* @return string
*/
public function getBody()
{
return $this->body;
}
}