5 #include <hilti/ast/operators/common.h> 6 #include <hilti/ast/types/exception.h> 11 BEGIN_CTOR(exception, Ctor)
12 auto ctorType()
const {
return type::Exception(type::Wildcard()); }
14 auto signature()
const {
15 return Signature{.args = {{.id =
"msg", .type = type::String()}}, .doc = R
"( 16 Instantiates an instance of the exception type carrying the error message *msg*. 21 BEGIN_METHOD(exception, Description) 22 auto signature()
const {
23 return Signature{.self = type::Exception(type::Wildcard()),
24 .result = type::String(),
28 Returns the textual message associated with an exception object.