public function __construct ($message = null, $code = 0) { parent::__construct($message, $code); $this->stage = coren::current_stage (); $this->module = coren::current_module(); $this->method = coren::current_method(); }