Pit father Codes | how you play then becomes abnormally play unusual?

Play Java man, the beginning will be a variety of abnormal child, null pointer should be the most common. Play started to play more than two years abnormalities, abnormal play all kinds of wonderful after another.

Do you think the following definition of this anomaly it properly?

public class CommandException extends BaseException {

	private static final long serialVersionUID = -6354513454371927970L;
	
	public static CommandException PARAM_NULL= new CommandException("Command_assemble_01", "Parameter is Needed But Empty");
	public static CommandException DEVID_NULL = new CommandException("Command_assemble_02", "DevId Cannot Be Null");
	public static CommandException MDCODE_NULL = new CommandException("Command_assemble_03", "Model Code Cannot Be Empty");
	public static CommandException ORDER_NULL = new CommandException("Command_assemble_04", "Order Cannot Be Empty");
	public static CommandException TYPE_NULL = new CommandException("Command_assemble_05", "Upstream / Downstream Type Cannot Be Empty");
	public static CommandException MENUID_NULL = new CommandException("Command_assemble_06", "Menu Id Cannot Be Null");
	public static CommandException CTRLTYPE_NOT_RANGE= new CommandException("Command_assemble_07", "Ctrltype Cannot Be Recognized, Which is not in Range");
	public static CommandException CMD_NULL = new CommandException("Command_analyze_01", "CMD Cannot Be Null");
	public static CommandException PAYLOAD_NULL = new CommandException("Command_analyze_02", "Payload Cannot Be Null");
	public static CommandException FRAMEWORK_FAILED= new CommandException("Command_analyze_03", "Framework Failed to be Checked");
	public static CommandException CHECK_FAILED= new CommandException("Command_analyze_04", "Command Failed to be Checked");
	public static CommandException CONFIGURE_NOT_EXIST = new CommandException("Command_error_1001", "Configure is not Exist");
	public static CommandException REDIS_ERROR = new CommandException("Command_error_1002", "Cache Command in Redis Error", true);
	
	public CommandException() {
		super();
	}

If wrong, what's the problem? 

Go to the link below to comment, to collect their prizes:

https://gitee.com/oschina/bullshit-codes/blob/master/java/BadException.java

6 anniversary of the code cloud, We are seeking a variety of pit father of code, a lot of prizes waiting for you to come and collect

See detailed participatory approach   https://gitee.com/oschina/bullshit-codes

------ Dividing line------

Other pit father Tucao Code:

Guess you like

Origin www.oschina.net/news/107315/gitee-bad-code-exception