ADTF  3.18.2
workspace/conan/dev_essential/1.3.3/dw/stable/package/37682420cd166e229516a41c8d6a139a0b13e1e1/include/a_util/result/detail/error_description_intf.h
Go to the documentation of this file.
1 
16 #ifndef A_UTIL_UTIL_RESULT_DETAIL_ERROR_DESCRIPTION_INTERFACE_HEADER_INCLUDED
17 #define A_UTIL_UTIL_RESULT_DETAIL_ERROR_DESCRIPTION_INTERFACE_HEADER_INCLUDED
18 
19 #include <cstdint>
20 
21 namespace a_util {
22 namespace result {
23 namespace detail {
29 public:
34  virtual std::int32_t getErrorCode() const = 0;
35 
40  virtual std::int32_t getLine() const = 0;
41 
46  virtual const char* getErrorDescription() const = 0;
47 
52  virtual const char* getFileName() const = 0;
53 
58  virtual const char* getFunctionName() const = 0;
59 
64  virtual const char* getErrorCodeLabel() const = 0;
65 
66 protected:
69  {
70  }
71 };
72 
73 } // namespace detail
74 } // namespace result
75 } // namespace a_util
76 
77 #endif // A_UTIL_UTIL_RESULT_DETAIL_ERROR_DESCRIPTION_INTERFACE_HEADER_INCLUDED
virtual const char * getFunctionName() const =0
Interface method to get the name of the function the error was reported in.
virtual std::int32_t getLine() const =0
Interface method to get the line of the source file where the error was reported.
virtual const char * getErrorDescription() const =0
Interface method to get the error code as string representation.
virtual const char * getErrorCodeLabel() const =0
Interface method to get the error code label.
virtual std::int32_t getErrorCode() const =0
Interface method to get the error code.
virtual const char * getFileName() const =0
Interface method to get the name of the file the error was reported in.
Serves as the root component, with common functionality documented in core functionality.
Definition: base.h:24