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

io.deephaven.plot.errors.PlotIllegalStateException Maven / Gradle / Ivy

There is a newer version: 0.36.1
Show newest version
//
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending
//
package io.deephaven.plot.errors;

/**
 * IllegalStateException that contains information about the plot.
 */
public class PlotIllegalStateException extends IllegalStateException {

    public PlotIllegalStateException(final String exception, final PlotExceptionCause exceptionCause) {
        this(exception, exceptionCause == null ? null : exceptionCause.getPlotInfo());
    }

    public PlotIllegalStateException(final PlotInfo exceptionCause) {
        super(exceptionCause == null ? null : exceptionCause.toString());
    }

    public PlotIllegalStateException(final String exception, final PlotInfo plotInfo) {
        super("" + (plotInfo == null || plotInfo.toString() == null ? "" : "Plot Information: " + plotInfo + " ")
                + exception);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy