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

com.jeppeman.highlite.ProcessingException Maven / Gradle / Ivy

There is a newer version: 1.1.3
Show newest version
package com.jeppeman.highlite;

import javax.lang.model.element.Element;

/**
 * {@link RuntimeException} that holds a reference to the {@link Element} that caused the exception
 * so that the {@link HighLiteProcessor} can handle the error properly.
 *
 * @author jesper
 */
@SuppressWarnings("unused")
final class ProcessingException extends RuntimeException {

    private final Element mElement;

    ProcessingException(final Element element, final String message) {
        super(message);
        mElement = element;
    }

    ProcessingException(final Element element, final Throwable cause) {
        super(cause);
        mElement = element;
    }

    ProcessingException(final Element element, final String message, final Throwable cause) {
        super(message, cause);
        mElement = element;
    }

    Element getElement() {
        return mElement;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy