de.mrapp.parser.feed.common.adapter.MethodInvocationError Maven / Gradle / Ivy
/*
* JavaFeedParserCommon Copyright 2013-2014 Michael Rapp
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package de.mrapp.parser.feed.common.adapter;
/**
* An error, which is thrown, if an error occurs while the Java Reflection API
* is used by an adapter to invoke a method.
*
* @author Michael Rapp
*
* @since 1.0.0
*/
public class MethodInvocationError extends ReflectionError {
/**
* The constant serial version UID.
*/
private static final long serialVersionUID = 1L;
/**
* Creates a new error, which is thrown, if an error occurs while the Java
* Reflection API is used by an adapter to invoke a method.
*
* @param message
* The error's message as a {@link String}
*/
public MethodInvocationError(final String message) {
super(message);
}
/**
* Creates a new error, which is thrown, if an error occurs while the Java
* Reflection API is used by an adapter to invoke a method.
*
* @param cause
* The {@link Throwable}, which caused the error
*/
public MethodInvocationError(final Throwable cause) {
super(cause);
}
/**
* Creates a new error, which is thrown, if an error occurs while the Java
* Reflection API is used by an adapter to invoke a method.
*
* @param message
* The error's message as a {@link String}
* @param cause
* The {@link Throwable}, which caused the error
*/
public MethodInvocationError(final String message, final Throwable cause) {
super(message, cause);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy