usr/src/java/rad/org/opensolaris/os/rad/jmx/IncompatibleVersionException.java
changeset 764 ebb25c1dac73
parent 677 fbc09f84f958
equal deleted inserted replaced
763:94428b581c8c 764:ebb25c1dac73
    27 
    27 
    28 import javax.management.JMException;
    28 import javax.management.JMException;
    29 import org.opensolaris.os.adr.APIVersion;
    29 import org.opensolaris.os.adr.APIVersion;
    30 
    30 
    31 public class IncompatibleVersionException extends JMException {
    31 public class IncompatibleVersionException extends JMException {
    32     private Class iface_;
    32     private Class<?> iface_;
    33     private APIVersion cver_;
    33     private APIVersion cver_;
    34     private APIVersion sver_;
    34     private APIVersion sver_;
    35 
    35 
    36     IncompatibleVersionException(Class iface, APIVersion cver,
    36     IncompatibleVersionException(Class<?> iface, APIVersion cver,
    37 	APIVersion sver, String msg) {
    37 	APIVersion sver, String msg) {
    38 	super(msg);
    38 	super(msg);
    39 	iface_ = iface;
    39 	iface_ = iface;
    40 	cver_ = cver;
    40 	cver_ = cver;
    41 	sver_ = sver;
    41 	sver_ = sver;
    42     }
    42     }
    43 
    43 
    44     IncompatibleVersionException(Class iface, APIVersion cver,
    44     IncompatibleVersionException(Class<?> iface, APIVersion cver,
    45 	APIVersion sver) {
    45 	APIVersion sver) {
    46 	this(iface, cver, sver, String.format("Incompatible versions: " +
    46 	this(iface, cver, sver, String.format("Incompatible versions: " +
    47 	    "%s Client [%s], Server = [%s].", iface.getName(), cver, sver));
    47 	    "%s Client [%s], Server = [%s].", iface.getName(), cver, sver));
    48     }
    48     }
    49 
    49 
    50     public Class getInterfaceClass() {
    50     public Class<?> getInterfaceClass() {
    51 	return iface_;
    51 	return iface_;
    52     }
    52     }
    53 
    53 
    54     public APIVersion getClientVersion() {
    54     public APIVersion getClientVersion() {
    55 	return cver_;
    55 	return cver_;