This commit is contained in:
Romain Neutron
2012-04-26 00:55:53 +02:00
parent edbfff226e
commit ade22295ad
631 changed files with 92375 additions and 101763 deletions

View File

@@ -17,17 +17,15 @@
*/
abstract class API_V1_exception_abstract extends Exception
{
protected static $details;
protected static $details;
public function __construct()
{
return $this;
}
public static function get_details()
{
return static::$details;
}
public function __construct()
{
return $this;
}
public static function get_details()
{
return static::$details;
}
}

View File

@@ -17,7 +17,6 @@
*/
class API_V1_exception_badrequest extends API_V1_exception_abstract
{
protected static $details = 'Parameter is invalid or missing';
protected static $details = 'Parameter is invalid or missing';
}

View File

@@ -17,7 +17,6 @@
*/
class API_V1_exception_forbidden extends API_V1_exception_abstract
{
protected static $details = 'Access to the requested ressource is forbidden';
protected static $details = 'Access to the requested ressource is forbidden';
}

View File

@@ -17,7 +17,6 @@
*/
class API_V1_exception_internalservererror extends API_V1_exception_abstract
{
protected static $details = 'Internal Server Error';
protected static $details = 'Internal Server Error';
}

View File

@@ -17,7 +17,6 @@
*/
class API_V1_exception_methodnotallowed extends API_V1_exception_abstract
{
protected static $details = 'Attempting to use POST with a GET-only endpoint, or vice-versa';
protected static $details = 'Attempting to use POST with a GET-only endpoint, or vice-versa';
}

View File

@@ -17,7 +17,6 @@
*/
class API_V1_exception_notfound extends API_V1_exception_abstract
{
protected static $details = 'Requested ressource is not found';
protected static $details = 'Requested ressource is not found';
}

View File

@@ -17,7 +17,6 @@
*/
class API_V1_exception_unauthorized extends API_V1_exception_abstract
{
protected static $details = 'The OAuth token was provided but was invalid.';
protected static $details = 'The OAuth token was provided but was invalid.';
}