2015-02-04 12:33:45 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
package org.gcube.vremanagement.executor.exception;
|
|
|
|
|
2019-12-04 09:57:20 +01:00
|
|
|
import java.util.UUID;
|
|
|
|
|
2015-02-04 12:33:45 +01:00
|
|
|
/**
|
2017-02-01 17:02:31 +01:00
|
|
|
* @author Luca Frosini (ISTI - CNR)
|
2015-02-04 12:33:45 +01:00
|
|
|
*/
|
|
|
|
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";
|
2015-02-04 12:33:45 +01:00
|
|
|
|
2019-12-04 09:57:20 +01:00
|
|
|
public PluginInstanceNotFoundException(UUID uuid) {
|
|
|
|
super(String.format(DEFAULT_MESSAGE,uuid.toString()));
|
2015-02-04 12:33:45 +01:00
|
|
|
}
|
|
|
|
|
2019-12-04 09:57:20 +01:00
|
|
|
public PluginInstanceNotFoundException(UUID uuid, Throwable cause) {
|
|
|
|
this(String.format(DEFAULT_MESSAGE,uuid.toString()), cause);
|
2015-02-04 12:33:45 +01:00
|
|
|
}
|
|
|
|
|
2019-02-25 18:28:49 +01:00
|
|
|
public PluginInstanceNotFoundException(String message) {
|
|
|
|
super(message);
|
2015-02-04 12:33:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public PluginInstanceNotFoundException(String message, Throwable cause){
|
|
|
|
super(message, cause);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|