01: package de.anomic.plasma.cache;
02:
03: /**
04: * This exception is thrown when a protocol (or a derivative using this protocol) is not
05: * supported, as is the case in the {@link ResourceInfoFactory}.
06: * @see package {@link de.anomic.plasma.cache} for all {@link IResourceInfo}s available
07: */
08: public class UnsupportedProtocolException extends Exception {
09:
10: private static final long serialVersionUID = 1L;
11:
12: public static final String MESSAGE = "Unsupported protocol error: ";
13:
14: public UnsupportedProtocolException(String protocol) {
15: super (MESSAGE + protocol);
16: }
17:
18: public UnsupportedProtocolException(String protocol, Throwable cause) {
19: super(MESSAGE + protocol, cause);
20: }
21: }
|