MissingComponentException.java

package org.opentrafficsim.core.gtu;

/**
 * Thrown when a model component is missing, or when the correct implementation is missing. These situations cannot always be
 * checked beforehand, as certain model assume surrounding GTUs to have model components, and possibly of a certain
 * implementation.
 * <p>
 * Copyright (c) 2024-2026 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 Alexander Verbraeck
 * @author Peter Knoppers
 * @author Wouter Schakel
 */
public class MissingComponentException extends GtuException
{

    /** Serialization version UID. */
    private static final long serialVersionUID = 20241025L;

    /**
     * Constructor.
     */
    public MissingComponentException()
    {
        super();
    }

    /**
     * Constructor with message.
     * @param message message
     */
    public MissingComponentException(final String message)
    {
        super(message);
    }

    /**
     * Constructor with throwable cause.
     * @param cause cause
     */
    public MissingComponentException(final Throwable cause)
    {
        super(cause);
    }

    /**
     * Constructor with message and throwable cause.
     * @param message message
     * @param cause cause
     */
    public MissingComponentException(final String message, final Throwable cause)
    {
        super(message, cause);
    }

}