📄 userexception.java
字号:
package ContextDemo.ContextInterfacePackage;
/**
* <ul>
* <li> <b>IDL Source</b> "ContextDemo.idl"
* <li> <b>IDL Name</b> ::ContextDemo::ContextInterface::UserException
* <li> <b>Repository Id</b> IDL:ContextDemo/ContextInterface/UserException:1.0
* </ul>
* <b>IDL definition:</b>
* <pre>
* exception UserException {
...
};
* </pre>
*/
public final class UserException extends org.omg.CORBA.UserException {
public java.lang.String reason;
public UserException () {
super(ContextDemo.ContextInterfacePackage.UserExceptionHelper.id());
}
public UserException (java.lang.String reason) {
this();
this.reason = reason;
}
public UserException (java.lang.String _reason, java.lang.String reason) {
super(ContextDemo.ContextInterfacePackage.UserExceptionHelper.id() + ' ' + _reason);
this.reason = reason;
}
public java.lang.String toString () {
final java.lang.StringBuffer _ret = new java.lang.StringBuffer("exception ContextDemo.ContextInterfacePackage.UserException {");
_ret.append("\n");
_ret.append("java.lang.String reason=");
_ret.append(reason != null?'\"' + reason + '\"':null);
_ret.append("\n");
_ret.append("}");
return _ret.toString();
}
public boolean equals (java.lang.Object o) {
if (this == o) return true;
if (o == null) return false;
if (o instanceof ContextDemo.ContextInterfacePackage.UserException) {
final ContextDemo.ContextInterfacePackage.UserException obj = (ContextDemo.ContextInterfacePackage.UserException)o;
boolean res = true;
do {
res = this.reason == obj.reason ||
(this.reason != null && obj.reason != null && this.reason.equals(obj.reason));
} while (false);
return res;
}
else {
return false;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -