
com.aol.micro.server.errors.BaseException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of micro-error-codes Show documentation
Show all versions of micro-error-codes Show documentation
Plugin for handling errors in a standardized way
package com.aol.micro.server.errors;
import lombok.Getter;
@SuppressWarnings("serial")
public abstract class BaseException extends RuntimeException {
@Getter
private final ErrorCode errorCode;
public BaseException(final ErrorCode errorCode, final Throwable cause) {
super(
errorCode.toString(), cause);
this.errorCode = errorCode;
}
public BaseException(final ErrorCode errorCode) {
super(
errorCode.toString());
this.errorCode = errorCode;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy