]> matita.cs.unibo.it Git - helm.git/commitdiff
Db exceptions update
authornatile <??>
Thu, 3 Oct 2002 08:00:32 +0000 (08:00 +0000)
committernatile <??>
Thu, 3 Oct 2002 08:00:32 +0000 (08:00 +0000)
helm/ocaml/mathql_interpreter/dbconn.ml

index a6b1b2cce8351f15345a5bc6f01509762e31b852..d5db3125224aa2ee5d7e2dee3a4f714619101479 100644 (file)
@@ -33,9 +33,9 @@
  *)
 open MathQL;;
 
-exception MQInvalidURI of string
-exception MQConnectionFailed of string
-exception MQInvalidConnection of string
+exception DBInvalidURI of string
+exception DBConnectionFailed of string
+exception DBInvalidConnection of string
 
 
 
@@ -58,7 +58,7 @@ let conn = ref None;;
  *)
 let pgc () =
    match !conn with
-      None -> raise (MQInvalidConnection connection_param)
+      None -> raise (DBInvalidConnection connection_param)
     | Some c -> c
 ;;
 
@@ -72,7 +72,7 @@ let init () =
    try (
     conn := Some (new Postgres.connection connection_param);
    ) with
-    _ -> raise (MQConnectionFailed ("init: " ^ connection_param))
+    _ -> raise (DBConnectionFailed ("init: " ^ connection_param))
 ;;
 
 (*