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;
 
   55          prefix(
std::move(prefix)),
 
   60    std::string getPrefix() 
const;
 
   61    std::string toString() 
const;
 
 
   73        : location(loc), message(std::move(msg)) {}
 
   75    std::string toString() 
const;
 
 
Definition source_file.h:123
 
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:68