16#ifndef LIB_ERROR_MESSAGE_H_
17#define LIB_ERROR_MESSAGE_H_
22#include "lib/source_file.h"
37 enum class MessageType : std::size_t { None, Error, Warning, Info };
39 MessageType type = MessageType::None;
53 const std::vector<Util::SourceInfo> &
locations,
const std::string &
suffix)
56 std::string getPrefix()
const;
57 std::string toString()
const;
69 : location(loc), message(msg) {}
71 std::string toString()
const;
Definition source_file.h:126
Definition error_message.h:36
std::vector< Util::SourceInfo > locations
Particular formatted message.
Definition error_message.h:42
ErrorMessage()
Used by errorWithSuffix.
Definition error_message.h:45
std::string message
Typically error/warning type from catalog.
Definition error_message.h:41
std::string suffix
Relevant source locations for this error.
Definition error_message.h:43
Definition error_message.h:64