
com.loy.e.core.exception.LoyException Maven / Gradle / Ivy
/*
* Copyright Loy Fu. 付厚俊
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.loy.e.core.exception;
/**
*
* @author Loy Fu qq群 540553957 http://www.17jee.com
* @since 1.8
* @version 3.0.0
*
*/
public class LoyException extends RuntimeException {
private static final long serialVersionUID = -6706307799181451578L;
private String errorKey;
private String errorMsg;
private Object[] params;
public LoyException(String errorKey) {
this.errorKey = errorKey;
}
public LoyException(String errorCode, Object... params) {
this.errorKey = errorCode;
this.params = params;
}
public String getErrorKey() {
return errorKey;
}
public void setErrorKey(String errorKey) {
this.errorKey = errorKey;
}
public String getErrorMsg() {
return errorMsg;
}
public void setErrorMsg(String errorMsg) {
this.errorMsg = errorMsg;
}
public Object[] getParams() {
return params;
}
public void setParams(Object[] params) {
this.params = params;
}
// @Override
// public Throwable fillInStackTrace() {
// return this;
// }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy