package com.fwdekker.randomness.common;

import javax.swing.JComponent;
import org.jetbrains.annotations.NotNull;


/**
 * An exception indicating that the validation of some {@code JComponent} has failed.
 */
public final class ValidationException extends Exception {
    private final JComponent component;


    /**
     * @param message   the detail message
     * @param component the component
     * @see Exception#Exception(String)
     */
    public ValidationException(final String message, @NotNull final JComponent component) {
        super(message);

        this.component = component;
    }

    /**
     * @param message   the detail message
     * @param cause     the cause
     * @param component the component
     * @see Exception#Exception(String, Throwable)
     */
    public ValidationException(final String message, final Throwable cause, @NotNull final JComponent component) {
        super(message, cause);

        this.component = component;
    }


    /**
     * Returns the invalid component.
     *
     * @return the invalid component
     */
    public JComponent getComponent() {
        return component;
    }
}

@@ -605,380 +605,8 @@
  %7D%0A%0A
-    /**%0A     * @param message   the detail message%0A     * @param cause     the cause%0A     * @param component the component%0A     * @see Exception#Exception(String, Throwable)%0A     */%0A    public ValidationException(final String message, final Throwable cause, @NotNull final JComponent component) %7B%0A        super(message, cause);%0A%0A        this.component = component;%0A    %7D%0A%0A
 %0A   

Remove unused constructor