13 lines
521 B
Java
13 lines
521 B
Java
package org.openautonomousconnection.protocol.exceptions;
|
|
|
|
import org.openautonomousconnection.protocol.versions.ProtocolVersion;
|
|
|
|
/**
|
|
* Exception thrown when an unsupported protocol side method is called.
|
|
*/
|
|
public class IncompatibleProtocolSideException extends RuntimeException {
|
|
public IncompatibleProtocolSideException(ProtocolVersion.ProtocolSide callerSide, ProtocolVersion.ProtocolSide side) {
|
|
super(callerSide.name() + " is incompatible with called method of ProtocolSide " + side.name());
|
|
}
|
|
}
|