Mercurial > epgrec.yaz
changeset 154:64b60603d7df
mod: RecExceptionÄɲÃ
author | epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp> |
---|---|
date | Sun, 28 Mar 2010 22:58:24 +0900 |
parents | 4099ae0393eb |
children | 190a3c46611d 0283c2c75147 |
files | recLog.inc.php |
diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/recLog.inc.php Sun Mar 28 22:56:00 2010 +0900 +++ b/recLog.inc.php Sun Mar 28 22:58:24 2010 +0900 @@ -4,6 +4,20 @@ define( "EPGREC_WARN" , 1 ); define( "EPGREC_ERROR", 2 ); +class RecException extends Exception { + + private $level = EPGREC_INFO; + + public function __construct( $mesg, $l = EPGREC_INFO ) { + parent::__construct( $mesg ); + $this->level = $l; + } + + public function getLevel() { + return $this->level; + } +} + function reclog( $message , $level = EPGREC_INFO ) {