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()); }
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()); }
DataTypeNotPrintableError::DataTypeNotPrintableError( const DataType& data_type, const location& loc) : FrontEndError(loc) { message_ = boost::str( boost::format("Type '%s' is not printable.") % data_type.getName()); }