From f5925305f248ec424a4a4acbd5339424ccd5e9cd Mon Sep 17 00:00:00 2001 From: natile Date: Thu, 3 Oct 2002 08:00:32 +0000 Subject: [PATCH] Db exceptions update --- helm/ocaml/mathql_interpreter/dbconn.ml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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)) ;; (* -- 2.39.2