Spicy
error.h
1 // Copyright (c) 2020-2021 by the Zeek Project. See LICENSE for details.
2 
3 #pragma once
4 
5 #include <hilti/ast/operators/common.h>
6 #include <hilti/ast/types/error.h>
7 
8 namespace hilti {
9 namespace operator_ {
10 
11 BEGIN_METHOD(error, Description)
12  auto signature() const {
13  return Signature{.self = type::Error(),
14  .result = type::String(),
15  .id = "description",
16  .args = {},
17  .doc = "Retrieves the textual description associated with the error."};
18  }
19 END_METHOD
20 
21 } // namespace operator_
22 } // namespace hilti