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

org.kohsuke.rngom.binary.RestrictionViolationException Maven / Gradle / Ivy

package org.kohsuke.rngom.binary;

import javax.xml.namespace.QName;

import org.xml.sax.Locator;

final class RestrictionViolationException extends Exception {
    private String messageId;
    private Locator loc;
    private QName name;

    RestrictionViolationException(String messageId) {
        this.messageId = messageId;
    }

    RestrictionViolationException(String messageId, QName name) {
        this.messageId = messageId;
        this.name = name;
    }

    String getMessageId() {
        return messageId;
    }

    Locator getLocator() {
        return loc;
    }

    void maybeSetLocator(Locator loc) {
        if (this.loc == null)
            this.loc = loc;
    }

    QName getName() {
        return name;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy