OtsException.java

package org.opentrafficsim.base;

/**
 * OtsException is a generic exception for the OTS project.
 * <p>
 * Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
 * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
 * </p>
 * @author <a href="https://github.com/averbraeck">Alexander Verbraeck</a>
 */
public class OtsException extends Exception
{
    /** */
    private static final long serialVersionUID = 20220915L;

    /**
     * Create an exception without a message.
     */
    public OtsException()
    {
        super();
    }

    /**
     * Create an exception with a message.
     * @param message String; the message to include in the exception
     */
    public OtsException(final String message)
    {
        super(message);
    }

    /**
     * Create an exception with an underlying cause.
     * @param cause Throwable; the underlying cause of the exception
     */
    public OtsException(final Throwable cause)
    {
        super(cause);
    }

    /**
     * Create an exception with an underlying cause and a message.
     * @param message String; the message to include in the exception
     * @param cause Throwable; the underlying cause of the exception
     */
    public OtsException(final String message, final Throwable cause)
    {
        super(message, cause);
    }
}