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::operator_ { // NOLINT(modernize-concat-nested-namespaces)
9 
10 BEGIN_METHOD(error, Description)
11  const auto& signature() const {
12  static auto _signature = Signature{.self = type::Error(),
13  .result = type::String(),
14  .id = "description",
15  .args = {},
16  .doc = "Retrieves the textual description associated with the error."};
17  return _signature;
18  }
19 END_METHOD
20 
21 } // namespace hilti::operator_
Definition: operator-registry.h:15