Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'prolic/json-renamed-interfaces'
Browse files Browse the repository at this point in the history
  • Loading branch information
akrabat committed May 15, 2012
2 parents c7e9465 + 447f6b7 commit d86b089
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/Exception.php → src/Exception/ExceptionInterface.php
Expand Up @@ -18,13 +18,13 @@
* @license http://framework.zend.com/license/new-bsd New BSD License
*/

namespace Zend\Json;
namespace Zend\Json\Exception;

/**
* @category Zend
* @package Zend_Json
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Exception
interface ExceptionInterface
{}
4 changes: 3 additions & 1 deletion src/Exception/InvalidArgumentException.php
Expand Up @@ -26,5 +26,7 @@
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class InvalidArgumentException extends \InvalidArgumentException implements \Zend\Json\Exception
class InvalidArgumentException
extends \InvalidArgumentException
implements ExceptionInterface
{}
4 changes: 3 additions & 1 deletion src/Exception/RuntimeException.php
Expand Up @@ -26,5 +26,7 @@
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class RuntimeException extends \RuntimeException implements \Zend\Json\Exception
class RuntimeException
extends \RuntimeException
implements ExceptionInterface
{}
5 changes: 2 additions & 3 deletions src/Server/Exception/ErrorException.php
Expand Up @@ -21,8 +21,7 @@

namespace Zend\Json\Server\Exception;

use BadMethodCallException,
Zend\Json\Server\Exception;
use BadMethodCallException;

/**
* Thrown by Zend\Json\Server\Client when an JSON-RPC fault response is returned.
Expand All @@ -35,5 +34,5 @@
*/
class ErrorException
extends BadMethodCallException
implements Exception
implements ExceptionInterface
{}
Expand Up @@ -18,7 +18,9 @@
* @license http://framework.zend.com/license/new-bsd New BSD License
*/

namespace Zend\Json\Server;
namespace Zend\Json\Server\Exception;

use Zend\Json\Exception\ExceptionInterface as Exception;

/**
* @category Zend
Expand All @@ -27,5 +29,5 @@
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Exception extends \Zend\Json\Exception
interface ExceptionInterface extends Exception
{}
6 changes: 5 additions & 1 deletion src/Server/Exception/InvalidArgumentException.php
Expand Up @@ -20,12 +20,16 @@

namespace Zend\Json\Server\Exception;

use Zend\Json\Exception;

/**
* @category Zend
* @package Zend_Json
* @subpackage Server
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class InvalidArgumentException extends \InvalidArgumentException implements \Zend\Json\Server\Exception
class InvalidArgumentException
extends Exception\InvalidArgumentException
implements ExceptionInterface
{}
6 changes: 5 additions & 1 deletion src/Server/Exception/RuntimeException.php
Expand Up @@ -20,12 +20,16 @@

namespace Zend\Json\Server\Exception;

use Zend\Json\Exception;

/**
* @category Zend
* @package Zend_Json
* @subpackage Server
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class RuntimeException extends \RuntimeException implements \Zend\Json\Server\Exception
class RuntimeException
extends Exception\RuntimeException
implements ExceptionInterface
{}

0 comments on commit d86b089

Please sign in to comment.