public class EccExceptionInfoBO extends EccBaseBO
{
/**
* ECC异常值对象类
*/
private EccExceptionInfoVO eccExceptionInfoVO = new EccExceptionInfoVO();
/**
* 异常产生起始时间
*/
private String startOpeationTime;
/**
* 异常产生终了时间
*/
private String endOpertionTime;
/**
* 操作用户名称后面加上六位工号
*/
private String operteUserName;
public EccExceptionInfoBO()
{
}
/**
* Access method for the eccExceptionInfoVO property.
*
* @return the current value of the eccExceptionInfoVO property
*/
public EccExceptionInfoVO getEccExceptionInfoVO()
{
return eccExceptionInfoVO;
}
/**
* Sets the value of the eccExceptionInfoVO property.
*
* @param aEccExceptionInfoVO the new value of the eccExceptionInfoVO property
*/
public void setEccExceptionInfoVO(EccExceptionInfoVO aEccExceptionInfoVO)
{
eccExceptionInfoVO = aEccExceptionInfoVO;
}
/**
* Access method for the startOpeationTime property.
*
* @return the current value of the startOpeationTime property
*/
public String getStartOpeationTime()
{
return startOpeationTime;
}
/**
* Sets the value of the startOpeationTime property.
*
* @param aStartOpeationTime the new value of the startOpeationTime property
*/
public void setStartOpeationTime(String aStartOpeationTime)
{
startOpeationTime = aStartOpeationTime;
}
/**
* Access method for the endOpertionTime property.
*
* @return the current value of the endOpertionTime property
*/
public String getEndOpertionTime()
{
return endOpertionTime;
}
/**
* Sets the value of the endOpertionTime property.
*
* @param aEndOpertionTime the new value of the endOpertionTime property
*/
public void setEndOpertionTime(String aEndOpertionTime)
{
endOpertionTime = aEndOpertionTime;
}
/**
* @return
*/
public String getOperteUserName() {
return operteUserName;
}
/**
* @param string
*/
public void setOperteUserName(String string) {
operteUserName = string;
}
}
public class EccExceptionInfoVO extends EccBaseVO
{
/**
* 信息最大长度
*/
private static final int MAX_MESSAGE_LENGTH = 2000;
/**
* 异常信息Id
*/
private int exceptionInfoId;
/**
* 系统名称
*/
private String appName;
/**
* 错误发生的层
*/
private String errorLayer;
/**
* 模块名称
*/
private String moduleName;
/**
* 类名称
*/
private String className;
/**
* 异常抛出处方法名称
*/
private String methodName;
/**
* 错误键,用于与资源文件中的键对应
*/
private String errorKey;
/**
* 错误码,用于标识错误标号
*/
private String errorCode;
/**
* 异常信息
*/
private String exceptionMessage;
/**
* 抛出的异常
*/
private Exception exception;
/**
* @roseuid 4330FBA10195
*/
public EccExceptionInfoVO()
{
}
/**
* Access method for the exceptionInfoId property.
*
* @return the current value of the exceptionInfoId property
*/
public int getExceptionInfoId()
{
return exceptionInfoId;
}
/**
* Sets the value of the exceptionInfoId property.
*
* @param aExceptionInfoId the new value of the exceptionInfoId property
*/
public void setExceptionInfoId(int aExceptionInfoId)
{
exceptionInfoId = aExceptionInfoId;
}
/**
* Access method for the appName property.
*
* @return the current value of the appName property
*/
public String getAppName()
{
return appName;
}
/**
* Sets the value of the appName property.
*
* @param aAppName the new value of the appName property
*/
public void setAppName(String aAppName)
{
appName = aAppName;
}
/**
* Access method for the errorLayer property.
*
* @return the current value of the errorLayer property
*/
public String getErrorLayer()
{
return errorLayer;
}
/**
* Sets the value of the errorLayer property.
*
* @param aErrorLayer the new value of the errorLayer property
*/
public void setErrorLayer(String aErrorLayer)
{
errorLayer = aErrorLayer;
}
/**
* Access method for the moduleName property.
*
* @return the current value of the moduleName property
*/
public String getModuleName()
{
return moduleName;
}
/**
* Sets the value of the moduleName property.
*
* @param aModuleName the new value of the moduleName property
*/
public void setModuleName(String aModuleName)
{
moduleName = aModuleName;
}
/**
* Access method for the className property.
*
* @return the current value of the className property
*/
public String getClassName()
{
return className;
}
/**
* Sets the value of the className property.
*
* @param aClassName the new value of the className property
*/
public void setClassName(String aClassName)
{
className = aClassName;
}
/**
* Access method for the methodName property.
*
* @return the current value of the methodName property
*/
public String getMethodName()
{
return methodName;
}
/**
* Sets the value of the methodName property.
*
* @param aMethodName the new value of the methodName property
*/
public void setMethodName(String aMethodName)
{
methodName = aMethodName;
}
/**
* Access method for the errorKey property.
*
* @return the current value of the errorKey property
*/
public String getErrorKey()
{
return errorKey;
}
/**
* Sets the value of the errorKey property.
*
* @param aErrorKey the new value of the errorKey property
*/
public void setErrorKey(String aErrorKey)
{
errorKey = aErrorKey;
}
/**
* Access method for the errorCode property.
*
* @return the current value of the errorCode property
*/
public String getErrorCode()
{
return errorCode;
}
/**
* Sets the value of the errorCode property.
*
* @param aErrorCode the new value of the errorCode property
*/
public void setErrorCode(String aErrorCode)
{
errorCode = aErrorCode;
}
/**
* Access method for the exceptionMessage property.
*
* @return the current value of the exceptionMessage property
*/
public String getExceptionMessage()
{
//判断信息是否为空
if(exceptionMessage != null)
{
//初始化行数
int rowNum = 0;
//退出循环点
int breakPiont = 0;
//获得信息长度
int messageLength = exceptionMessage.length();
//判断异常信息是否超长
if(messageLength > MAX_MESSAGE_LENGTH)
{
//循环取异常信息
for (int i = MAX_MESSAGE_LENGTH / 2; i < messageLength; i++)
{
//判断换行
if (exceptionMessage.charAt(i) == '/n')
{
//行数累加
rowNum++;
//判断行数是否达到指定行数
if (i > MAX_MESSAGE_LENGTH)
{
//截取异常信息
exceptionMessage = exceptionMessage.substring(0, breakPiont);
//退出循环
break;
}
//记录循环点
breakPiont = i;
}
}
}
}
return exceptionMessage;
}
/**
* Sets the value of the exceptionMessage property.
*
* @param aExceptionMessage the new value of the exceptionMessage property
*/
public void setExceptionMessage(String aExceptionMessage)
{
exceptionMessage = aExceptionMessage;
}
/**
* Access method for the exception property.
*
* @return the current value of the exception property
*/
public Exception getException()
{
return exception;
}
/**
* Sets the value of the exception property.
*
* @param aException the new value of the exception property
*/
public void setException(Exception aException)
{
exception = aException;
}
}