예제 #1
0
 protected function Error($errObj, $exit = false)
 {
     $str = "Image Creator (MagickWand) Error Message";
     $err_msg = "";
     //$err_msg .= WandGetExceptionString($errObj);
     switch (true) {
         case IsMagickWand($errObj):
             $err_msg .= MagickGetExceptionString($errObj);
             break;
         case IsDrawingWand($errObj):
             $err_msg .= DrawGetExceptionString($errObj);
             break;
         case IsPixelWand($errObj):
         case IsPixelIterator($errObj):
             $err_msg .= PixelGetExceptionString($errObj);
             break;
         default:
             $err_msg .= $errObj;
     }
     if (!empty($err_msg)) {
         $str .= "(" . $err_msg . ")";
     }
     parent::Error($str, $exit);
     return;
 }
예제 #2
0
 protected function Error($str, $exit = false)
 {
     if (mysql_errno() === false || mysql_errno() === 0) {
         return;
     }
     $this->DB_error = true;
     $this->DB_error_description[] = mysql_errno() . " - " . mysql_error() . " ({$str})";
     $str .= "\nQuery String: " . $this->DB_qstr . "\n";
     $str .= "MySQL Message: " . mysql_errno() . " - " . mysql_error();
     parent::Error($str, $exit);
     return;
 }
예제 #3
0
 protected function Error($str, $exit = false)
 {
     $str .= "\n";
     $str .= "Query String: " . $this->DB_qstr . "\n";
     $str .= "MSSQL Message: " . $this->GetErrorCode() . " - " . mssql_get_last_message();
     parent::Error($str, $exit);
     return;
 }