1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- if (!defined('GNUSOCIAL')) { exit(1); }
- class UnknownUriException extends ServerException
- {
- public $object_uri = null;
- public function __construct($object_uri, $msg=null)
- {
- $this->object_uri = $object_uri;
- if ($msg === null) {
-
-
- $msg = sprintf(_('No object found with URI "%s"'), $this->object_uri);
- common_debug(__CLASS__ . ': ' . $msg);
- }
- parent::__construct($msg, 404);
- }
- }
|