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:
Mikael Nordfeldth
2014-05-19 17:13:32 +02:00
parent fc942f5a04
commit d2c749c7de
2 changed files with 43 additions and 1 deletions

View File

@@ -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;
}