forked from GNUsocial/gnu-social
NoUriException added and implemented in FeedSub class
This is a specific exception for objects which require URI but lack it, first implemented in FeedSub to allow for identification of bad entries.
This commit is contained in:
@@ -103,7 +103,7 @@ class FeedSub extends Managed_DataObject
|
||||
public function getUri()
|
||||
{
|
||||
if (empty($this->uri)) {
|
||||
throw new ServerException('No URI for FeedSub entry');
|
||||
throw new NoUriException($this);
|
||||
}
|
||||
return $this->uri;
|
||||
}
|
||||
|
Reference in New Issue
Block a user