Skip to content

Commit c6be008

Browse files
committed
common api_error
1 parent dc546b7 commit c6be008

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/common/ezAPI.ml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ type ('arg, 'input, 'output, 'error, 'security) ws_service1 =
6969
type ('arg1, 'arg2, 'input, 'output, 'error, 'security) ws_service2 =
7070
((Req.t * 'arg1) * 'arg2, 'input, 'output, 'error, 'security) service
7171

72+
type 'e api_error =
73+
| KnownError of { code : int ; error : 'e }
74+
| UnknownError of { code : int ; msg : string option }
75+
7276
let warnings = ref []
7377
let warning s = warnings := s :: !warnings
7478
let warnings f =

src/request/virtual/s/ezReq_lwt_S.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
open EzAPI
1212

13-
type 'e api_error =
13+
type 'e api_error = 'e EzAPI.api_error =
1414
| KnownError of { code : int ; error : 'e }
1515
| UnknownError of { code : int ; msg : string option }
1616

0 commit comments

Comments
 (0)