下面列出了怎么用org.omg.CORBA.UNKNOWN的API类实例代码及写法,或者点击链接到github查看源代码。
public UNKNOWN bindUpdateContextFailed( CompletionStatus cs, Throwable t ) {
UNKNOWN exc = new UNKNOWN( BIND_UPDATE_CONTEXT_FAILED, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "NAMING.bindUpdateContextFailed",
parameters, NamingSystemException.class, exc ) ;
}
return exc ;
}
public UNKNOWN unknownServerappException( CompletionStatus cs, Throwable t ) {
UNKNOWN exc = new UNKNOWN( UNKNOWN_SERVERAPP_EXCEPTION, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "POA.unknownServerappException",
parameters, POASystemException.class, exc ) ;
}
return exc ;
}
public UNKNOWN unknownLocalinvocationError( CompletionStatus cs, Throwable t ) {
UNKNOWN exc = new UNKNOWN( UNKNOWN_LOCALINVOCATION_ERROR, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "POA.unknownLocalinvocationError",
parameters, POASystemException.class, exc ) ;
}
return exc ;
}
public UNKNOWN unsupportedSystemException( CompletionStatus cs, Throwable t ) {
UNKNOWN exc = new UNKNOWN( UNSUPPORTED_SYSTEM_EXCEPTION, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "OMG.unsupportedSystemException",
parameters, OMGSystemException.class, exc ) ;
}
return exc ;
}
public UNKNOWN resolveConversionFailure( CompletionStatus cs, Throwable t ) {
UNKNOWN exc = new UNKNOWN( RESOLVE_CONVERSION_FAILURE, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "NAMING.resolveConversionFailure",
parameters, NamingSystemException.class, exc ) ;
}
return exc ;
}
public UEInfoServiceContext(InputStream is, GIOPVersion gv)
{
super(is, gv) ;
try {
unknown = (Throwable) in.read_value() ;
} catch (ThreadDeath d) {
throw d ;
} catch (Throwable e) {
unknown = new UNKNOWN( 0, CompletionStatus.COMPLETED_MAYBE ) ;
}
}
public UNKNOWN unbindFailure( CompletionStatus cs, Throwable t ) {
UNKNOWN exc = new UNKNOWN( UNBIND_FAILURE, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "NAMING.unbindFailure",
parameters, NamingSystemException.class, exc ) ;
}
return exc ;
}
public UNKNOWN unknownRequestInvoke( CompletionStatus cs, Throwable t ) {
UNKNOWN exc = new UNKNOWN( UNKNOWN_REQUEST_INVOKE, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.FINE )) {
Object[] parameters = null ;
doLog( Level.FINE, "INTERCEPTORS.unknownRequestInvoke",
parameters, InterceptorsSystemException.class, exc ) ;
}
return exc ;
}
public UNKNOWN otshookexception( CompletionStatus cs, Throwable t ) {
UNKNOWN exc = new UNKNOWN( OTSHOOKEXCEPTION, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "POA.otshookexception",
parameters, POASystemException.class, exc ) ;
}
return exc ;
}
public UNKNOWN unknownServerException( CompletionStatus cs, Throwable t ) {
UNKNOWN exc = new UNKNOWN( UNKNOWN_SERVER_EXCEPTION, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "POA.unknownServerException",
parameters, POASystemException.class, exc ) ;
}
return exc ;
}
public UNKNOWN unknownServerappException( CompletionStatus cs, Throwable t ) {
UNKNOWN exc = new UNKNOWN( UNKNOWN_SERVERAPP_EXCEPTION, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "POA.unknownServerappException",
parameters, POASystemException.class, exc ) ;
}
return exc ;
}
public UNKNOWN piUnknownUserException( CompletionStatus cs, Throwable t ) {
UNKNOWN exc = new UNKNOWN( PI_UNKNOWN_USER_EXCEPTION, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "OMG.piUnknownUserException",
parameters, OMGSystemException.class, exc ) ;
}
return exc ;
}
public UNKNOWN unknownLocalinvocationError( CompletionStatus cs, Throwable t ) {
UNKNOWN exc = new UNKNOWN( UNKNOWN_LOCALINVOCATION_ERROR, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "POA.unknownLocalinvocationError",
parameters, POASystemException.class, exc ) ;
}
return exc ;
}
public UNKNOWN unknownUserException( CompletionStatus cs, Throwable t ) {
UNKNOWN exc = new UNKNOWN( UNKNOWN_USER_EXCEPTION, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.FINE )) {
Object[] parameters = null ;
doLog( Level.FINE, "OMG.unknownUserException",
parameters, OMGSystemException.class, exc ) ;
}
return exc ;
}
public UNKNOWN unsupportedSystemException( CompletionStatus cs, Throwable t ) {
UNKNOWN exc = new UNKNOWN( UNSUPPORTED_SYSTEM_EXCEPTION, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "OMG.unsupportedSystemException",
parameters, OMGSystemException.class, exc ) ;
}
return exc ;
}
public UNKNOWN piUnknownUserException( CompletionStatus cs, Throwable t ) {
UNKNOWN exc = new UNKNOWN( PI_UNKNOWN_USER_EXCEPTION, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "OMG.piUnknownUserException",
parameters, OMGSystemException.class, exc ) ;
}
return exc ;
}
public UEInfoServiceContext(InputStream is, GIOPVersion gv)
{
super(is, gv) ;
try {
unknown = (Throwable) in.read_value() ;
} catch (ThreadDeath d) {
throw d ;
} catch (Throwable e) {
unknown = new UNKNOWN( 0, CompletionStatus.COMPLETED_MAYBE ) ;
}
}
public UEInfoServiceContext(InputStream is, GIOPVersion gv)
{
super(is, gv) ;
try {
unknown = (Throwable) in.read_value() ;
} catch (ThreadDeath d) {
throw d ;
} catch (Throwable e) {
unknown = new UNKNOWN( 0, CompletionStatus.COMPLETED_MAYBE ) ;
}
}
public UEInfoServiceContext(InputStream is, GIOPVersion gv)
{
super(is, gv) ;
try {
unknown = (Throwable) in.read_value() ;
} catch (ThreadDeath d) {
throw d ;
} catch (Throwable e) {
unknown = new UNKNOWN( 0, CompletionStatus.COMPLETED_MAYBE ) ;
}
}
public UNKNOWN otshookexception( CompletionStatus cs, Throwable t ) {
UNKNOWN exc = new UNKNOWN( OTSHOOKEXCEPTION, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "POA.otshookexception",
parameters, POASystemException.class, exc ) ;
}
return exc ;
}
public UNKNOWN resolveConversionFailure( CompletionStatus cs, Throwable t ) {
UNKNOWN exc = new UNKNOWN( RESOLVE_CONVERSION_FAILURE, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "NAMING.resolveConversionFailure",
parameters, NamingSystemException.class, exc ) ;
}
return exc ;
}
public UNKNOWN unknownSysex( CompletionStatus cs, Throwable t ) {
UNKNOWN exc = new UNKNOWN( UNKNOWN_SYSEX, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "UTIL.unknownSysex",
parameters, UtilSystemException.class, exc ) ;
}
return exc ;
}
public UNKNOWN resolveFailure( CompletionStatus cs, Throwable t ) {
UNKNOWN exc = new UNKNOWN( RESOLVE_FAILURE, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "NAMING.resolveFailure",
parameters, NamingSystemException.class, exc ) ;
}
return exc ;
}
public UNKNOWN unbindFailure( CompletionStatus cs, Throwable t ) {
UNKNOWN exc = new UNKNOWN( UNBIND_FAILURE, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "NAMING.unbindFailure",
parameters, NamingSystemException.class, exc ) ;
}
return exc ;
}
public UNKNOWN unknownLocalinvocationError( ) {
return unknownLocalinvocationError( CompletionStatus.COMPLETED_NO, null ) ;
}
public UNKNOWN bindUpdateContextFailed( CompletionStatus cs ) {
return bindUpdateContextFailed( cs, null ) ;
}
public UNKNOWN bindUpdateContextFailed( Throwable t ) {
return bindUpdateContextFailed( CompletionStatus.COMPLETED_NO, t ) ;
}
public UNKNOWN bindUpdateContextFailed( ) {
return bindUpdateContextFailed( CompletionStatus.COMPLETED_NO, null ) ;
}
public UNKNOWN bindFailure( Throwable t ) {
return bindFailure( CompletionStatus.COMPLETED_NO, t ) ;
}
public UNKNOWN unknownUserException( CompletionStatus cs ) {
return unknownUserException( cs, null ) ;
}