net.sf.mmm.util.nls.impl.formatter.NlsFormatterChoiceOnlyElseConditionException Maven / Gradle / Ivy
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package net.sf.mmm.util.nls.impl.formatter;
import net.sf.mmm.util.lang.api.attribute.AttributeReadMessage;
import net.sf.mmm.util.lang.api.attribute.AttributeReadMessageCode;
/**
* The {@link NlsFormatterChoiceOnlyElseConditionException} is thrown if a {@link NlsFormatterChoice
* choice-format} starts with an (else)-condition.
*
* @author Joerg Hohwiller (hohwille at users.sourceforge.net)
* @since 2.0.0
*/
public class NlsFormatterChoiceOnlyElseConditionException extends RuntimeException implements AttributeReadMessage, AttributeReadMessageCode {
private static final long serialVersionUID = 1L;
/** @see #getCode() */
public static final String MESSAGE_CODE = "ChoiceOnlyElse";
/**
* The constructor.
*/
public NlsFormatterChoiceOnlyElseConditionException() {
super("A choice format needs to have at least one regular condition before (else)-condition!");
}
@Override
public String getCode() {
return MESSAGE_CODE;
}
}