From: natile Date: Thu, 3 Oct 2002 08:00:32 +0000 (+0000) Subject: Db exceptions update X-Git-Tag: new_mathql_before_first_merge~20 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=f5925305f248ec424a4a4acbd5339424ccd5e9cd;p=helm.git Db exceptions update --- diff --git a/helm/ocaml/mathql_interpreter/dbconn.ml b/helm/ocaml/mathql_interpreter/dbconn.ml index a6b1b2cce..d5db31252 100644 --- a/helm/ocaml/mathql_interpreter/dbconn.ml +++ b/helm/ocaml/mathql_interpreter/dbconn.ml @@ -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)) ;; (*