Comparison

teal-src/util/error.d.tl @ 12626:608443cc765c

util.error: Use avoid name conflict in Teal interface declaration Naming things ... Thing or thing_t?
author Kim Alvefur <zash@zash.se>
date Wed, 10 Aug 2022 15:10:50 +0200
parent 11459:86904555bffc
comparison
equal deleted inserted replaced
12625:e43a01641ca1 12626:608443cc765c
36 condition : error_condition 36 condition : error_condition
37 text : string 37 text : string
38 code : integer 38 code : integer
39 end 39 end
40 40
41 local record error 41 local record Error
42 type : error_type 42 type : error_type
43 condition : error_condition 43 condition : error_condition
44 text : string 44 text : string
45 code : integer 45 code : integer
46 context : { any : any } 46 context : { any : any }
53 local type context = { string : any } 53 local type context = { string : any }
54 54
55 local record error_registry_wrapper 55 local record error_registry_wrapper
56 source : string 56 source : string
57 registry : registry 57 registry : registry
58 new : function (string, context) : error 58 new : function (string, context) : Error
59 coerce : function (any, string) : any, error 59 coerce : function (any, string) : any, Error
60 wrap : function (error) : error 60 wrap : function (Error) : Error
61 wrap : function (string, context) : error 61 wrap : function (string, context) : Error
62 is_error : function (any) : boolean 62 is_error : function (any) : boolean
63 end 63 end
64 64
65 local record lib 65 local record lib
66 record configure_opt 66 record configure_opt
67 auto_inject_traceback : boolean 67 auto_inject_traceback : boolean
68 end 68 end
69 new : function (protoerror, context, { string : protoerror }, string) : error 69 new : function (protoerror, context, { string : protoerror }, string) : Error
70 init : function (string, string, registry | compact_registry) : error_registry_wrapper 70 init : function (string, string, registry | compact_registry) : error_registry_wrapper
71 init : function (string, registry | compact_registry) : error_registry_wrapper 71 init : function (string, registry | compact_registry) : error_registry_wrapper
72 is_error : function (any) : boolean 72 is_error : function (any) : boolean
73 coerce : function (any, string) : any, error 73 coerce : function (any, string) : any, Error
74 from_stanza : function (table, context, string) : error 74 from_stanza : function (table, context, string) : Error
75 configure : function 75 configure : function
76 end 76 end
77 77
78 return lib 78 return lib