Right now, it appears that .throws() is only actionable on the Route... curious what people think about also allowing throws to be assigned at the individual get, post, actions. For example, right now I can do
route("/example").throws(exe1, exe2) {
get { .. }
post { .. }
}
However, since get/post quite often will have differing exceptions, it would be useful to be able to assign throws documentation to the individual actions, ie
Hola,
Right now, it appears that
.throws()
is only actionable on theRoute
... curious what people think about also allowingthrows
to be assigned at the individualget
,post
, actions. For example, right now I can doHowever, since get/post quite often will have differing exceptions, it would be useful to be able to assign throws documentation to the individual actions, ie