25 lines
544 B
Java
25 lines
544 B
Java
package com.adc.da.exception;
|
|
|
|
public class AdcDaBaseException extends RuntimeException {
|
|
private String errorCode;
|
|
|
|
public AdcDaBaseException() {
|
|
}
|
|
|
|
public AdcDaBaseException(String message) {
|
|
this("-1", message);
|
|
}
|
|
|
|
public AdcDaBaseException(String errorCode, String message) {
|
|
super(message);
|
|
this.errorCode = errorCode;
|
|
}
|
|
|
|
public String getErrorCode() {
|
|
return this.errorCode;
|
|
}
|
|
|
|
public void setErrorCode(String errorCode) {
|
|
this.errorCode = errorCode;
|
|
}
|
|
} |