]> matita.cs.unibo.it Git - helm.git/commitdiff
Type of exception changed: from exn to string.
authoracerioni <??>
Fri, 12 Mar 2004 09:40:58 +0000 (09:40 +0000)
committeracerioni <??>
Fri, 12 Mar 2004 09:40:58 +0000 (09:40 +0000)
helm/ocaml/getter/clientHTTP.ml
helm/ocaml/getter/clientHTTP.mli

index fc319e5834fc6d2755e12d7ac3b18d09a8a914e1..a7b36982c7d55a5d5edfc4ca8a52dde282a77ce0 100644 (file)
  * http://cs.unibo.it/helm/.
  *)
 
-exception HttpClientError of exn * string;;
+exception HttpClientError of string * string;; (* reason, uri *)
 
 let send cmd =
  try
   ignore (Http_client.http_get cmd)
  with
-  e -> raise (HttpClientError (e,cmd))
+  e -> raise (HttpClientError (Printexc.to_string e, cmd))
 ;;
 
 let get uri =
  try
   Http_client.http_get uri
  with
-  e -> raise (HttpClientError (e,uri))
+  e -> raise (HttpClientError (Printexc.to_string e, uri))
 ;;
 
 let get_and_save uri dest_filename =
index 59587edc285f41eb5e7e268dab6f7df8f18d3aa2..f45d63dda2692d5329e1cf970ebe9d8f5fa6cc5f 100644 (file)
@@ -23,7 +23,7 @@
  * http://cs.unibo.it/helm/.
  *)
 
-exception HttpClientError of exn * string;;
+exception HttpClientError of string * string;; (* reason, uri *)
 val send : string -> unit
 val get : string -> string
 val get_and_save : string -> string -> unit