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

org.xson.common.validate.XCOValidateException Maven / Gradle / Ivy

Go to download

xco-validate based XCO, using xml language to describe data validation framework.

The newest version!
package org.xson.common.validate;

public class XCOValidateException extends RuntimeException {

	private static final long	serialVersionUID	= 4225315797257223806L;

	private int					errorCode			= -1;

	private String				errorMessage		= "数据验证错误";

	public XCOValidateException() {
		super();
	}

	public XCOValidateException(String message) {
		super(message);
	}

	public XCOValidateException(String message, Throwable cause) {
		super(message, cause);
	}

	public XCOValidateException(Throwable cause) {
		super(cause);
	}

	public XCOValidateException(int errorCode, String errorMessage) {
		super(errorMessage);
		this.errorCode = errorCode;
		this.errorMessage = errorMessage;
	}

	public int getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy