From d69aad5810fb35a4b38796f9378787bc08a9a981 Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Sun, 13 Dec 2015 22:49:50 -0800 Subject: devdocs: Mention when a function throws an error This uses the "throws" annotation in the generated docs, adding a "Throws exception: Yes" if the annotation is present. --- giscanner/doctemplates/devdocs/Gjs/_method.tmpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/giscanner/doctemplates/devdocs/Gjs/_method.tmpl b/giscanner/doctemplates/devdocs/Gjs/_method.tmpl index 59e9ab8b..6619eb9e 100644 --- a/giscanner/doctemplates/devdocs/Gjs/_method.tmpl +++ b/giscanner/doctemplates/devdocs/Gjs/_method.tmpl @@ -47,6 +47,10 @@ % endif + % if m.throws: +
Throws exception:
+
Yes
+ % endif -- cgit v1.2.1