初始化项目2

This commit is contained in:
季圣华
2016-10-30 10:43:24 +08:00
parent 238bdf9c10
commit f01f4f210f
206 changed files with 19870 additions and 0 deletions

View File

@@ -0,0 +1,73 @@
package com.jsh.exception;
/**
* @title: 平台异常基类
* @description: 用于包装一些异常信息,打印日志等服务
* @author andy
* @since: 2014-01-24
*/
@SuppressWarnings("serial")
public class AmsException extends Exception
{
public long errorCode = -1;
public String message ;
public AmsException()
{
super();
}
public AmsException(String message)
{
super(message);
this.message = message;
}
public AmsException(String message, Throwable cause)
{
super(message, cause);
this.message = message;
}
public AmsException(Throwable cause)
{
super(cause);
}
public AmsException(long errorCode)
{
super();
this.errorCode = errorCode;
}
public AmsException(String message, long errorCode)
{
super(message);
this.errorCode = errorCode;
this.message = message;
}
public AmsException(String message, long errorCode, Throwable cause)
{
super(message, cause);
this.errorCode = errorCode;
this.message = message;
}
public AmsException(long errorCode, Throwable cause)
{
super(cause);
this.errorCode = errorCode;
}
public long getErrorCode()
{
return errorCode;
}
public String getMessage()
{
return message;
}
}