]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - plugins/OStatus/lib/feedsubexception.php
Don't accept non-objects before testing with "instanceof".
[quix0rs-gnu-social.git] / plugins / OStatus / lib / feedsubexception.php
1 <?php
2 class FeedSubException extends Exception
3 {
4     function __construct($msg=null)
5     {
6         $type = get_class($this);
7         if ($msg) {
8             parent::__construct("$type: $msg");
9         } else {
10             parent::__construct($type);
11         }
12     }
13 }