Exemplo n.º 1
0
DataTypeNotEqualError::DataTypeNotEqualError(
    const DataType& type1, const DataType& type2, const location& loc)
    : FrontEndError(loc) {
  message_ = boost::str(boost::format(
      "Type '%s' is not equals to type '%s'")
      % type1.getName() % type2.getName());
}
Exemplo n.º 2
0
IncorrectTypeError::IncorrectTypeError(
    const DataType& expected_type,
    const DataType& actual_type,
    const location& loc) : FrontEndError(loc) {
  message_ = boost::str(
      boost::format("Incorrect type '%1%', '%2%' required.")
      % actual_type.getName() % expected_type.getName());
}
Exemplo n.º 3
0
DataTypeNotPrintableError::DataTypeNotPrintableError(
    const DataType& data_type, const location& loc) : FrontEndError(loc) {
  message_ = boost::str(
      boost::format("Type '%s' is not printable.") % data_type.getName());
}