OSDN Git Service

mod: RecException追加
authorepgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
Sun, 28 Mar 2010 13:58:24 +0000 (22:58 +0900)
committerepgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
Sun, 28 Mar 2010 13:58:24 +0000 (22:58 +0900)
recLog.inc.php

index 37fc7cd..fe0c57a 100755 (executable)
@@ -4,6 +4,20 @@ define( "EPGREC_INFO" , 0 );
 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 ) {