RestfulException.php
579 Bytes
<?php
/**
* [Discuz!] (C)2001-2099 Comsenz Inc.
* This is NOT a freeware, use is subject to license terms
*
* $Id: RestfulException.php 28702 2012-03-08 06:43:58Z yexinhao $
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
class Cloud_Service_Client_RestfulException extends Exception {
public function __construct($message, $code = 0) {
if ($message instanceof Exception) {
parent::__construct($message->getMessage(), intval($message->getCode()));
} else {
parent::__construct($message, intval($code));
}
}
}