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

org.onetwo.common.commandline.CommandLineException Maven / Gradle / Ivy

There is a newer version: 4.7.2
Show newest version
package org.onetwo.common.commandline;

import org.onetwo.common.exception.ServiceException;

public class CommandLineException extends ServiceException {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -1033620239530683772L;
	public static final String DEFAULT_MESSAGE = "错误的指令";
	
	public CommandLineException() {
		super(DEFAULT_MESSAGE);
	}

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

	public CommandLineException(String message, String code) {
		super(message, code);
	}

	public CommandLineException(Throwable cause) {
		super(DEFAULT_MESSAGE, cause);
	}
	
	public CommandLineException(String msg, Throwable cause) {
		super(msg, cause);
	}

	protected String getDefaultCode(){
		return CommandLineErrorCode.BASE_CODE;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy