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

de.invation.code.toval.parser.XMLParserException Maven / Gradle / Ivy

Go to download

TOVAL comprises a set of java classes for common programming issues. It includes utils for arrays, lists, sets and collections for convenient handling and modification, but also support for mathematic definitions concerning logic (clauses + resolution) together with some algorithms for permutations, powersets and resolution. Additionally it contains a number of types for multisets, matrices with object keys and much more.

The newest version!
package de.invation.code.toval.parser;

public class XMLParserException extends ParserException {
	
	private static final long serialVersionUID = 7379282132696502134L;
	private final String msg_Tagstructure = "Corrupted tagstructure";
	
	private ErrorCode errorCode = null;
	
	public XMLParserException() {
		super();
	}

	public XMLParserException(ErrorCode errorCode) {
		super();
		this.errorCode = errorCode;
	}

	public XMLParserException(Throwable t) {
		super(t);
	}

	@Override
	public String getMessage(){
		switch(errorCode){
			case TAGSTRUCTURE: return msg_Tagstructure;
		}
		return null;
	}
	
	public ErrorCode getErrorCode(){
		return errorCode;
	}
	
	public enum ErrorCode { 
		TAGSTRUCTURE;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy