All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.legaldocml.akn.MandatoryAttributeException Maven / Gradle / Ivy

The newest version!
package io.legaldocml.akn;

import io.legaldocml.LegalDocMlException;
import io.legaldocml.io.XmlWriter;

/**
 * @author Jacques Militello
 */
public final class MandatoryAttributeException extends LegalDocMlException {

    public MandatoryAttributeException(AknObject aknObject, String attributeName, XmlWriter writer) {
        super(buildMsg(aknObject, attributeName, writer));
    }

    private static String buildMsg(AknObject aknObject, String attributeName, XmlWriter writer) {
        StringBuilder builder = new StringBuilder();
        builder.append("Attribute Mandatory [").append(attributeName).append("] ");
        builder.append("AknObject [").append(aknObject).append("]");
        return builder.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy