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

com.sun.msv.verifier.ValidityViolation Maven / Gradle / Ivy

There is a newer version: 2.2.5.1
Show newest version
/*
 * @(#)$Id: ValidityViolation.java,v 1.9 2003/06/09 20:37:42 kk122374 Exp $
 *
 * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved.
 * 
 * This software is the proprietary information of Sun Microsystems, Inc.  
 * Use is subject to license terms.
 * 
 */
package com.sun.msv.verifier;

import org.xml.sax.Locator;
import org.xml.sax.SAXParseException;

/**
 * Contains information about where and how validity violation was happened.
 * 
 * @author Kohsuke KAWAGUCHI
 */
public class ValidityViolation extends SAXParseException {
    
    private ErrorInfo errorInfo;
    
    /**
     * Gets the detailed error information, if any.
     * 
     * If there is no detailed information available, it returns null.
     * Otherwise one of the derived classes of ErrorInfo will be returned.
     */
    public ErrorInfo getErrorInfo() { return errorInfo;    }
    
    public ValidityViolation( Locator loc, String msg, ErrorInfo ei ) {
        super( msg, loc );
        this.errorInfo = ei;
    }
/*
    public ValidityViolation( Locator loc, String msg ) {
        this( msg, loc, null );
    }
*/
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy