* @param level
* @param version
*/
public LevelVersionError(String elementName, int level, int version) {
super();
Message message = new Message();
if (!AbstractSBase.isValidLevelAndVersionCombination(level, version)) {
message.setMessage(MessageFormat.format(
UNDEFINED_LEVEL_VERSION_COMBINATION_MSG, level, version));
if (elementName != null) {
message.setMessage(MessageFormat.format("{0} for element {1}.", message.getMessage().substring(0,
message.getMessage().length() - 1), elementName));
}
setMessage(message);
}
}