Location: PHPKode > projects > AModules3 > amodules-3.0.1/lib/APortalException.php
<?
class APortalException extends BaseException {
    var $related_obj=null;
    function __construct($msg,$related_obj=null){
        parent::__construct($msg);
        $this->related_obj = $related_obj;
    }
    function getAdditionalMessage(){
        if(!$this->related_obj)return '';
        return "Related object: ID: ".$this->related_obj->id.", Type: ".$this->related_obj->type.", Name: ".$this->related_obj->name;
    }
}
Return current item: AModules3