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

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

There is a newer version: 1.2.6
Show newest version
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