整理代码
This commit is contained in:
@@ -1,73 +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;
|
||||
}
|
||||
}
|
||||
package com.jsh.exception;
|
||||
|
||||
/**
|
||||
* @title: 平台异常基类
|
||||
* @description: 用于包装一些异常信息,打印日志等服务
|
||||
* @author jishenghua
|
||||
* @since: 2014-01-24
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class JshException extends Exception
|
||||
{
|
||||
public long errorCode = -1;
|
||||
|
||||
public String message ;
|
||||
|
||||
public JshException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public JshException(String message)
|
||||
{
|
||||
super(message);
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public JshException(String message, Throwable cause)
|
||||
{
|
||||
super(message, cause);
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public JshException(Throwable cause)
|
||||
{
|
||||
super(cause);
|
||||
}
|
||||
|
||||
public JshException(long errorCode)
|
||||
{
|
||||
super();
|
||||
this.errorCode = errorCode;
|
||||
}
|
||||
|
||||
public JshException(String message, long errorCode)
|
||||
{
|
||||
super(message);
|
||||
this.errorCode = errorCode;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public JshException(String message, long errorCode, Throwable cause)
|
||||
{
|
||||
super(message, cause);
|
||||
this.errorCode = errorCode;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public JshException(long errorCode, Throwable cause)
|
||||
{
|
||||
super(cause);
|
||||
this.errorCode = errorCode;
|
||||
}
|
||||
|
||||
public long getErrorCode()
|
||||
{
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
public String getMessage()
|
||||
{
|
||||
return message;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user