smart-executor-api/src/main/java/org/gcube/vremanagement/executor/exception/PluginInstanceNotFoundExcep...

37 lines
851 B
Java
Raw Normal View History

/**
*
*/
package org.gcube.vremanagement.executor.exception;
2019-12-04 09:57:20 +01:00
import java.util.UUID;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public class PluginInstanceNotFoundException extends ExecutorException {
/**
* Generated Serial Version UID
*/
private static final long serialVersionUID = -7609491801703267843L;
2019-12-04 09:57:20 +01:00
private static final String DEFAULT_MESSAGE = "No plugin instance with UUID %s found";
2019-12-04 09:57:20 +01:00
public PluginInstanceNotFoundException(UUID uuid) {
super(String.format(DEFAULT_MESSAGE,uuid.toString()));
}
2019-12-04 09:57:20 +01:00
public PluginInstanceNotFoundException(UUID uuid, Throwable cause) {
this(String.format(DEFAULT_MESSAGE,uuid.toString()), cause);
}
public PluginInstanceNotFoundException(String message) {
super(message);
}
public PluginInstanceNotFoundException(String message, Throwable cause){
super(message, cause);
}
}