All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oath.micro.server.errors.InvalidStateException Maven / Gradle / Ivy

package com.oath.micro.server.errors;

import com.oath.micro.server.health.ErrorEvent;

public class InvalidStateException extends BaseException {

    private static final long serialVersionUID = 1L;

    public InvalidStateException(final FormattedErrorCode errorCode) {
        super(
              errorCode.getCode());
        new ErrorBus().post(new ErrorEvent(
                                           this));
    }

    public InvalidStateException(final FormattedErrorCode errorCode, final Throwable cause) {
        super(
              errorCode.getCode(), cause);
        new ErrorBus().post(new ErrorEvent(
                                           this));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy