1 6 package com.sun.corba.se.impl.logging ; 7 8 import java.util.logging.Logger ; 9 import java.util.logging.Level ; 10 11 import org.omg.CORBA.OMGVMCID ; 12 import com.sun.corba.se.impl.util.SUNVMCID ; 13 import org.omg.CORBA.CompletionStatus ; 14 import org.omg.CORBA.SystemException ; 15 16 import com.sun.corba.se.spi.orb.ORB ; 17 18 import com.sun.corba.se.spi.logging.LogWrapperFactory; 19 20 import com.sun.corba.se.spi.logging.LogWrapperBase; 21 22 import org.omg.CORBA.BAD_PARAM ; 23 import org.omg.CORBA.UNKNOWN ; 24 import org.omg.CORBA.INITIALIZE ; 25 import org.omg.CORBA.INTERNAL ; 26 27 public class NamingSystemException extends LogWrapperBase { 28 29 public NamingSystemException( Logger logger ) 30 { 31 super( logger ) ; 32 } 33 34 private static LogWrapperFactory factory = new LogWrapperFactory() { 35 public LogWrapperBase create( Logger logger ) 36 { 37 return new NamingSystemException( logger ) ; 38 } 39 } ; 40 41 public static NamingSystemException get( ORB orb, String logDomain ) 42 { 43 NamingSystemException wrapper = 44 (NamingSystemException) orb.getLogWrapper( logDomain, 45 "NAMING", factory ) ; 46 return wrapper ; 47 } 48 49 public static NamingSystemException get( String logDomain ) 50 { 51 NamingSystemException wrapper = 52 (NamingSystemException) ORB.staticGetLogWrapper( logDomain, 53 "NAMING", factory ) ; 54 return wrapper ; 55 } 56 57 61 public static final int TRANSIENT_NAME_SERVER_BAD_PORT = SUNVMCID.value + 600 ; 62 63 public BAD_PARAM transientNameServerBadPort( CompletionStatus cs, Throwable t ) { 64 BAD_PARAM exc = new BAD_PARAM ( TRANSIENT_NAME_SERVER_BAD_PORT, cs ) ; 65 if (t != null) 66 exc.initCause( t ) ; 67 68 if (logger.isLoggable( Level.WARNING )) { 69 Object [] parameters = null ; 70 doLog( Level.WARNING, "NAMING.transientNameServerBadPort", 71 parameters, NamingSystemException.class, exc ) ; 72 } 73 74 return exc ; 75 } 76 77 public BAD_PARAM transientNameServerBadPort( CompletionStatus cs ) { 78 return transientNameServerBadPort( cs, null ) ; 79 } 80 81 public BAD_PARAM transientNameServerBadPort( Throwable t ) { 82 return transientNameServerBadPort( CompletionStatus.COMPLETED_NO, t ) ; 83 } 84 85 public BAD_PARAM transientNameServerBadPort( ) { 86 return transientNameServerBadPort( CompletionStatus.COMPLETED_NO, null ) ; 87 } 88 89 public static final int TRANSIENT_NAME_SERVER_BAD_HOST = SUNVMCID.value + 601 ; 90 91 public BAD_PARAM transientNameServerBadHost( CompletionStatus cs, Throwable t ) { 92 BAD_PARAM exc = new BAD_PARAM ( TRANSIENT_NAME_SERVER_BAD_HOST, cs ) ; 93 if (t != null) 94 exc.initCause( t ) ; 95 96 if (logger.isLoggable( Level.WARNING )) { 97 Object [] parameters = null ; 98 doLog( Level.WARNING, "NAMING.transientNameServerBadHost", 99 parameters, NamingSystemException.class, exc ) ; 100 } 101 102 return exc ; 103 } 104 105 public BAD_PARAM transientNameServerBadHost( CompletionStatus cs ) { 106 return transientNameServerBadHost( cs, null ) ; 107 } 108 109 public BAD_PARAM transientNameServerBadHost( Throwable t ) { 110 return transientNameServerBadHost( CompletionStatus.COMPLETED_NO, t ) ; 111 } 112 113 public BAD_PARAM transientNameServerBadHost( ) { 114 return transientNameServerBadHost( CompletionStatus.COMPLETED_NO, null ) ; 115 } 116 117 public static final int OBJECT_IS_NULL = SUNVMCID.value + 602 ; 118 119 public BAD_PARAM objectIsNull( CompletionStatus cs, Throwable t ) { 120 BAD_PARAM exc = new BAD_PARAM ( OBJECT_IS_NULL, cs ) ; 121 if (t != null) 122 exc.initCause( t ) ; 123 124 if (logger.isLoggable( Level.WARNING )) { 125 Object [] parameters = null ; 126 doLog( Level.WARNING, "NAMING.objectIsNull", 127 parameters, NamingSystemException.class, exc ) ; 128 } 129 130 return exc ; 131 } 132 133 public BAD_PARAM objectIsNull( CompletionStatus cs ) { 134 return objectIsNull( cs, null ) ; 135 } 136 137 public BAD_PARAM objectIsNull( Throwable t ) { 138 return objectIsNull( CompletionStatus.COMPLETED_NO, t ) ; 139 } 140 141 public BAD_PARAM objectIsNull( ) { 142 return objectIsNull( CompletionStatus.COMPLETED_NO, null ) ; 143 } 144 145 public static final int INS_BAD_ADDRESS = SUNVMCID.value + 603 ; 146 147 public BAD_PARAM insBadAddress( CompletionStatus cs, Throwable t ) { 148 BAD_PARAM exc = new BAD_PARAM ( INS_BAD_ADDRESS, cs ) ; 149 if (t != null) 150 exc.initCause( t ) ; 151 152 if (logger.isLoggable( Level.WARNING )) { 153 Object [] parameters = null ; 154 doLog( Level.WARNING, "NAMING.insBadAddress", 155 parameters, NamingSystemException.class, exc ) ; 156 } 157 158 return exc ; 159 } 160 161 public BAD_PARAM insBadAddress( CompletionStatus cs ) { 162 return insBadAddress( cs, null ) ; 163 } 164 165 public BAD_PARAM insBadAddress( Throwable t ) { 166 return insBadAddress( CompletionStatus.COMPLETED_NO, t ) ; 167 } 168 169 public BAD_PARAM insBadAddress( ) { 170 return insBadAddress( CompletionStatus.COMPLETED_NO, null ) ; 171 } 172 173 177 public static final int BIND_UPDATE_CONTEXT_FAILED = SUNVMCID.value + 600 ; 178 179 public UNKNOWN bindUpdateContextFailed( CompletionStatus cs, Throwable t ) { 180 UNKNOWN exc = new UNKNOWN ( BIND_UPDATE_CONTEXT_FAILED, cs ) ; 181 if (t != null) 182 exc.initCause( t ) ; 183 184 if (logger.isLoggable( Level.WARNING )) { 185 Object [] parameters = null ; 186 doLog( Level.WARNING, "NAMING.bindUpdateContextFailed", 187 parameters, NamingSystemException.class, exc ) ; 188 } 189 190 return exc ; 191 } 192 193 public UNKNOWN bindUpdateContextFailed( CompletionStatus cs ) { 194 return bindUpdateContextFailed( cs, null ) ; 195 } 196 197 public UNKNOWN bindUpdateContextFailed( Throwable t ) { 198 return bindUpdateContextFailed( CompletionStatus.COMPLETED_NO, t ) ; 199 } 200 201 public UNKNOWN bindUpdateContextFailed( ) { 202 return bindUpdateContextFailed( CompletionStatus.COMPLETED_NO, null ) ; 203 } 204 205 public static final int BIND_FAILURE = SUNVMCID.value + 601 ; 206 207 public UNKNOWN bindFailure( CompletionStatus cs, Throwable t ) { 208 UNKNOWN exc = new UNKNOWN ( BIND_FAILURE, cs ) ; 209 if (t != null) 210 exc.initCause( t ) ; 211 212 if (logger.isLoggable( Level.WARNING )) { 213 Object [] parameters = null ; 214 doLog( Level.WARNING, "NAMING.bindFailure", 215 parameters, NamingSystemException.class, exc ) ; 216 } 217 218 return exc ; 219 } 220 221 public UNKNOWN bindFailure( CompletionStatus cs ) { 222 return bindFailure( cs, null ) ; 223 } 224 225 public UNKNOWN bindFailure( Throwable t ) { 226 return bindFailure( CompletionStatus.COMPLETED_NO, t ) ; 227 } 228 229 public UNKNOWN bindFailure( ) { 230 return bindFailure( CompletionStatus.COMPLETED_NO, null ) ; 231 } 232 233 public static final int RESOLVE_CONVERSION_FAILURE = SUNVMCID.value + 602 ; 234 235 public UNKNOWN resolveConversionFailure( CompletionStatus cs, Throwable t ) { 236 UNKNOWN exc = new UNKNOWN ( RESOLVE_CONVERSION_FAILURE, cs ) ; 237 if (t != null) 238 exc.initCause( t ) ; 239 240 if (logger.isLoggable( Level.WARNING )) { 241 Object [] parameters = null ; 242 doLog( Level.WARNING, "NAMING.resolveConversionFailure", 243 parameters, NamingSystemException.class, exc ) ; 244 } 245 246 return exc ; 247 } 248 249 public UNKNOWN resolveConversionFailure( CompletionStatus cs ) { 250 return resolveConversionFailure( cs, null ) ; 251 } 252 253 public UNKNOWN resolveConversionFailure( Throwable t ) { 254 return resolveConversionFailure( CompletionStatus.COMPLETED_NO, t ) ; 255 } 256 257 public UNKNOWN resolveConversionFailure( ) { 258 return resolveConversionFailure( CompletionStatus.COMPLETED_NO, null ) ; 259 } 260 261 public static final int RESOLVE_FAILURE = SUNVMCID.value + 603 ; 262 263 public UNKNOWN resolveFailure( CompletionStatus cs, Throwable t ) { 264 UNKNOWN exc = new UNKNOWN ( RESOLVE_FAILURE, cs ) ; 265 if (t != null) 266 exc.initCause( t ) ; 267 268 if (logger.isLoggable( Level.WARNING )) { 269 Object [] parameters = null ; 270 doLog( Level.WARNING, "NAMING.resolveFailure", 271 parameters, NamingSystemException.class, exc ) ; 272 } 273 274 return exc ; 275 } 276 277 public UNKNOWN resolveFailure( CompletionStatus cs ) { 278 return resolveFailure( cs, null ) ; 279 } 280 281 public UNKNOWN resolveFailure( Throwable t ) { 282 return resolveFailure( CompletionStatus.COMPLETED_NO, t ) ; 283 } 284 285 public UNKNOWN resolveFailure( ) { 286 return resolveFailure( CompletionStatus.COMPLETED_NO, null ) ; 287 } 288 289 public static final int UNBIND_FAILURE = SUNVMCID.value + 604 ; 290 291 public UNKNOWN unbindFailure( CompletionStatus cs, Throwable t ) { 292 UNKNOWN exc = new UNKNOWN ( UNBIND_FAILURE, cs ) ; 293 if (t != null) 294 exc.initCause( t ) ; 295 296 if (logger.isLoggable( Level.WARNING )) { 297 Object [] parameters = null ; 298 doLog( Level.WARNING, "NAMING.unbindFailure", 299 parameters, NamingSystemException.class, exc ) ; 300 } 301 302 return exc ; 303 } 304 305 public UNKNOWN unbindFailure( CompletionStatus cs ) { 306 return unbindFailure( cs, null ) ; 307 } 308 309 public UNKNOWN unbindFailure( Throwable t ) { 310 return unbindFailure( CompletionStatus.COMPLETED_NO, t ) ; 311 } 312 313 public UNKNOWN unbindFailure( ) { 314 return unbindFailure( CompletionStatus.COMPLETED_NO, null ) ; 315 } 316 317 321 public static final int TRANS_NS_CANNOT_CREATE_INITIAL_NC_SYS = SUNVMCID.value + 650 ; 322 323 public INITIALIZE transNsCannotCreateInitialNcSys( CompletionStatus cs, Throwable t ) { 324 INITIALIZE exc = new INITIALIZE ( TRANS_NS_CANNOT_CREATE_INITIAL_NC_SYS, cs ) ; 325 if (t != null) 326 exc.initCause( t ) ; 327 328 if (logger.isLoggable( Level.WARNING )) { 329 Object [] parameters = null ; 330 doLog( Level.WARNING, "NAMING.transNsCannotCreateInitialNcSys", 331 parameters, NamingSystemException.class, exc ) ; 332 } 333 334 return exc ; 335 } 336 337 public INITIALIZE transNsCannotCreateInitialNcSys( CompletionStatus cs ) { 338 return transNsCannotCreateInitialNcSys( cs, null ) ; 339 } 340 341 public INITIALIZE transNsCannotCreateInitialNcSys( Throwable t ) { 342 return transNsCannotCreateInitialNcSys( CompletionStatus.COMPLETED_NO, t ) ; 343 } 344 345 public INITIALIZE transNsCannotCreateInitialNcSys( ) { 346 return transNsCannotCreateInitialNcSys( CompletionStatus.COMPLETED_NO, null ) ; 347 } 348 349 public static final int TRANS_NS_CANNOT_CREATE_INITIAL_NC = SUNVMCID.value + 651 ; 350 351 public INITIALIZE transNsCannotCreateInitialNc( CompletionStatus cs, Throwable t ) { 352 INITIALIZE exc = new INITIALIZE ( TRANS_NS_CANNOT_CREATE_INITIAL_NC, cs ) ; 353 if (t != null) 354 exc.initCause( t ) ; 355 356 if (logger.isLoggable( Level.WARNING )) { 357 Object [] parameters = null ; 358 doLog( Level.WARNING, "NAMING.transNsCannotCreateInitialNc", 359 parameters, NamingSystemException.class, exc ) ; 360 } 361 362 return exc ; 363 } 364 365 public INITIALIZE transNsCannotCreateInitialNc( CompletionStatus cs ) { 366 return transNsCannotCreateInitialNc( cs, null ) ; 367 } 368 369 public INITIALIZE transNsCannotCreateInitialNc( Throwable t ) { 370 return transNsCannotCreateInitialNc( CompletionStatus.COMPLETED_NO, t ) ; 371 } 372 373 public INITIALIZE transNsCannotCreateInitialNc( ) { 374 return transNsCannotCreateInitialNc( CompletionStatus.COMPLETED_NO, null ) ; 375 } 376 377 381 public static final int NAMING_CTX_REBIND_ALREADY_BOUND = SUNVMCID.value + 600 ; 382 383 public INTERNAL namingCtxRebindAlreadyBound( CompletionStatus cs, Throwable t ) { 384 INTERNAL exc = new INTERNAL ( NAMING_CTX_REBIND_ALREADY_BOUND, cs ) ; 385 if (t != null) 386 exc.initCause( t ) ; 387 388 if (logger.isLoggable( Level.WARNING )) { 389 Object [] parameters = null ; 390 doLog( Level.WARNING, "NAMING.namingCtxRebindAlreadyBound", 391 parameters, NamingSystemException.class, exc ) ; 392 } 393 394 return exc ; 395 } 396 397 public INTERNAL namingCtxRebindAlreadyBound( CompletionStatus cs ) { 398 return namingCtxRebindAlreadyBound( cs, null ) ; 399 } 400 401 public INTERNAL namingCtxRebindAlreadyBound( Throwable t ) { 402 return namingCtxRebindAlreadyBound( CompletionStatus.COMPLETED_NO, t ) ; 403 } 404 405 public INTERNAL namingCtxRebindAlreadyBound( ) { 406 return namingCtxRebindAlreadyBound( CompletionStatus.COMPLETED_NO, null ) ; 407 } 408 409 public static final int NAMING_CTX_REBINDCTX_ALREADY_BOUND = SUNVMCID.value + 601 ; 410 411 public INTERNAL namingCtxRebindctxAlreadyBound( CompletionStatus cs, Throwable t ) { 412 INTERNAL exc = new INTERNAL ( NAMING_CTX_REBINDCTX_ALREADY_BOUND, cs ) ; 413 if (t != null) 414 exc.initCause( t ) ; 415 416 if (logger.isLoggable( Level.WARNING )) { 417 Object [] parameters = null ; 418 doLog( Level.WARNING, "NAMING.namingCtxRebindctxAlreadyBound", 419 parameters, NamingSystemException.class, exc ) ; 420 } 421 422 return exc ; 423 } 424 425 public INTERNAL namingCtxRebindctxAlreadyBound( CompletionStatus cs ) { 426 return namingCtxRebindctxAlreadyBound( cs, null ) ; 427 } 428 429 public INTERNAL namingCtxRebindctxAlreadyBound( Throwable t ) { 430 return namingCtxRebindctxAlreadyBound( CompletionStatus.COMPLETED_NO, t ) ; 431 } 432 433 public INTERNAL namingCtxRebindctxAlreadyBound( ) { 434 return namingCtxRebindctxAlreadyBound( CompletionStatus.COMPLETED_NO, null ) ; 435 } 436 437 public static final int NAMING_CTX_BAD_BINDINGTYPE = SUNVMCID.value + 602 ; 438 439 public INTERNAL namingCtxBadBindingtype( CompletionStatus cs, Throwable t ) { 440 INTERNAL exc = new INTERNAL ( NAMING_CTX_BAD_BINDINGTYPE, cs ) ; 441 if (t != null) 442 exc.initCause( t ) ; 443 444 if (logger.isLoggable( Level.WARNING )) { 445 Object [] parameters = null ; 446 doLog( Level.WARNING, "NAMING.namingCtxBadBindingtype", 447 parameters, NamingSystemException.class, exc ) ; 448 } 449 450 return exc ; 451 } 452 453 public INTERNAL namingCtxBadBindingtype( CompletionStatus cs ) { 454 return namingCtxBadBindingtype( cs, null ) ; 455 } 456 457 public INTERNAL namingCtxBadBindingtype( Throwable t ) { 458 return namingCtxBadBindingtype( CompletionStatus.COMPLETED_NO, t ) ; 459 } 460 461 public INTERNAL namingCtxBadBindingtype( ) { 462 return namingCtxBadBindingtype( CompletionStatus.COMPLETED_NO, null ) ; 463 } 464 465 public static final int NAMING_CTX_RESOLVE_CANNOT_NARROW_TO_CTX = SUNVMCID.value + 603 ; 466 467 public INTERNAL namingCtxResolveCannotNarrowToCtx( CompletionStatus cs, Throwable t ) { 468 INTERNAL exc = new INTERNAL ( NAMING_CTX_RESOLVE_CANNOT_NARROW_TO_CTX, cs ) ; 469 if (t != null) 470 exc.initCause( t ) ; 471 472 if (logger.isLoggable( Level.WARNING )) { 473 Object [] parameters = null ; 474 doLog( Level.WARNING, "NAMING.namingCtxResolveCannotNarrowToCtx", 475 parameters, NamingSystemException.class, exc ) ; 476 } 477 478 return exc ; 479 } 480 481 public INTERNAL namingCtxResolveCannotNarrowToCtx( CompletionStatus cs ) { 482 return namingCtxResolveCannotNarrowToCtx( cs, null ) ; 483 } 484 485 public INTERNAL namingCtxResolveCannotNarrowToCtx( Throwable t ) { 486 return namingCtxResolveCannotNarrowToCtx( CompletionStatus.COMPLETED_NO, t ) ; 487 } 488 489 public INTERNAL namingCtxResolveCannotNarrowToCtx( ) { 490 return namingCtxResolveCannotNarrowToCtx( CompletionStatus.COMPLETED_NO, null ) ; 491 } 492 493 public static final int NAMING_CTX_BINDING_ITERATOR_CREATE = SUNVMCID.value + 604 ; 494 495 public INTERNAL namingCtxBindingIteratorCreate( CompletionStatus cs, Throwable t ) { 496 INTERNAL exc = new INTERNAL ( NAMING_CTX_BINDING_ITERATOR_CREATE, cs ) ; 497 if (t != null) 498 exc.initCause( t ) ; 499 500 if (logger.isLoggable( Level.WARNING )) { 501 Object [] parameters = null ; 502 doLog( Level.WARNING, "NAMING.namingCtxBindingIteratorCreate", 503 parameters, NamingSystemException.class, exc ) ; 504 } 505 506 return exc ; 507 } 508 509 public INTERNAL namingCtxBindingIteratorCreate( CompletionStatus cs ) { 510 return namingCtxBindingIteratorCreate( cs, null ) ; 511 } 512 513 public INTERNAL namingCtxBindingIteratorCreate( Throwable t ) { 514 return namingCtxBindingIteratorCreate( CompletionStatus.COMPLETED_NO, t ) ; 515 } 516 517 public INTERNAL namingCtxBindingIteratorCreate( ) { 518 return namingCtxBindingIteratorCreate( CompletionStatus.COMPLETED_NO, null ) ; 519 } 520 521 public static final int TRANS_NC_BIND_ALREADY_BOUND = SUNVMCID.value + 700 ; 522 523 public INTERNAL transNcBindAlreadyBound( CompletionStatus cs, Throwable t ) { 524 INTERNAL exc = new INTERNAL ( TRANS_NC_BIND_ALREADY_BOUND, cs ) ; 525 if (t != null) 526 exc.initCause( t ) ; 527 528 if (logger.isLoggable( Level.WARNING )) { 529 Object [] parameters = null ; 530 doLog( Level.WARNING, "NAMING.transNcBindAlreadyBound", 531 parameters, NamingSystemException.class, exc ) ; 532 } 533 534 return exc ; 535 } 536 537 public INTERNAL transNcBindAlreadyBound( CompletionStatus cs ) { 538 return transNcBindAlreadyBound( cs, null ) ; 539 } 540 541 public INTERNAL transNcBindAlreadyBound( Throwable t ) { 542 return transNcBindAlreadyBound( CompletionStatus.COMPLETED_NO, t ) ; 543 } 544 545 public INTERNAL transNcBindAlreadyBound( ) { 546 return transNcBindAlreadyBound( CompletionStatus.COMPLETED_NO, null ) ; 547 } 548 549 public static final int TRANS_NC_LIST_GOT_EXC = SUNVMCID.value + 701 ; 550 551 public INTERNAL transNcListGotExc( CompletionStatus cs, Throwable t ) { 552 INTERNAL exc = new INTERNAL ( TRANS_NC_LIST_GOT_EXC, cs ) ; 553 if (t != null) 554 exc.initCause( t ) ; 555 556 if (logger.isLoggable( Level.WARNING )) { 557 Object [] parameters = null ; 558 doLog( Level.WARNING, "NAMING.transNcListGotExc", 559 parameters, NamingSystemException.class, exc ) ; 560 } 561 562 return exc ; 563 } 564 565 public INTERNAL transNcListGotExc( CompletionStatus cs ) { 566 return transNcListGotExc( cs, null ) ; 567 } 568 569 public INTERNAL transNcListGotExc( Throwable t ) { 570 return transNcListGotExc( CompletionStatus.COMPLETED_NO, t ) ; 571 } 572 573 public INTERNAL transNcListGotExc( ) { 574 return transNcListGotExc( CompletionStatus.COMPLETED_NO, null ) ; 575 } 576 577 public static final int TRANS_NC_NEWCTX_GOT_EXC = SUNVMCID.value + 702 ; 578 579 public INTERNAL transNcNewctxGotExc( CompletionStatus cs, Throwable t ) { 580 INTERNAL exc = new INTERNAL ( TRANS_NC_NEWCTX_GOT_EXC, cs ) ; 581 if (t != null) 582 exc.initCause( t ) ; 583 584 if (logger.isLoggable( Level.WARNING )) { 585 Object [] parameters = null ; 586 doLog( Level.WARNING, "NAMING.transNcNewctxGotExc", 587 parameters, NamingSystemException.class, exc ) ; 588 } 589 590 return exc ; 591 } 592 593 public INTERNAL transNcNewctxGotExc( CompletionStatus cs ) { 594 return transNcNewctxGotExc( cs, null ) ; 595 } 596 597 public INTERNAL transNcNewctxGotExc( Throwable t ) { 598 return transNcNewctxGotExc( CompletionStatus.COMPLETED_NO, t ) ; 599 } 600 601 public INTERNAL transNcNewctxGotExc( ) { 602 return transNcNewctxGotExc( CompletionStatus.COMPLETED_NO, null ) ; 603 } 604 605 public static final int TRANS_NC_DESTROY_GOT_EXC = SUNVMCID.value + 703 ; 606 607 public INTERNAL transNcDestroyGotExc( CompletionStatus cs, Throwable t ) { 608 INTERNAL exc = new INTERNAL ( TRANS_NC_DESTROY_GOT_EXC, cs ) ; 609 if (t != null) 610 exc.initCause( t ) ; 611 612 if (logger.isLoggable( Level.WARNING )) { 613 Object [] parameters = null ; 614 doLog( Level.WARNING, "NAMING.transNcDestroyGotExc", 615 parameters, NamingSystemException.class, exc ) ; 616 } 617 618 return exc ; 619 } 620 621 public INTERNAL transNcDestroyGotExc( CompletionStatus cs ) { 622 return transNcDestroyGotExc( cs, null ) ; 623 } 624 625 public INTERNAL transNcDestroyGotExc( Throwable t ) { 626 return transNcDestroyGotExc( CompletionStatus.COMPLETED_NO, t ) ; 627 } 628 629 public INTERNAL transNcDestroyGotExc( ) { 630 return transNcDestroyGotExc( CompletionStatus.COMPLETED_NO, null ) ; 631 } 632 633 public static final int INS_BAD_SCHEME_NAME = SUNVMCID.value + 705 ; 634 635 public INTERNAL insBadSchemeName( CompletionStatus cs, Throwable t ) { 636 INTERNAL exc = new INTERNAL ( INS_BAD_SCHEME_NAME, cs ) ; 637 if (t != null) 638 exc.initCause( t ) ; 639 640 if (logger.isLoggable( Level.WARNING )) { 641 Object [] parameters = null ; 642 doLog( Level.WARNING, "NAMING.insBadSchemeName", 643 parameters, NamingSystemException.class, exc ) ; 644 } 645 646 return exc ; 647 } 648 649 public INTERNAL insBadSchemeName( CompletionStatus cs ) { 650 return insBadSchemeName( cs, null ) ; 651 } 652 653 public INTERNAL insBadSchemeName( Throwable t ) { 654 return insBadSchemeName( CompletionStatus.COMPLETED_NO, t ) ; 655 } 656 657 public INTERNAL insBadSchemeName( ) { 658 return insBadSchemeName( CompletionStatus.COMPLETED_NO, null ) ; 659 } 660 661 public static final int INS_BAD_SCHEME_SPECIFIC_PART = SUNVMCID.value + 707 ; 662 663 public INTERNAL insBadSchemeSpecificPart( CompletionStatus cs, Throwable t ) { 664 INTERNAL exc = new INTERNAL ( INS_BAD_SCHEME_SPECIFIC_PART, cs ) ; 665 if (t != null) 666 exc.initCause( t ) ; 667 668 if (logger.isLoggable( Level.WARNING )) { 669 Object [] parameters = null ; 670 doLog( Level.WARNING, "NAMING.insBadSchemeSpecificPart", 671 parameters, NamingSystemException.class, exc ) ; 672 } 673 674 return exc ; 675 } 676 677 public INTERNAL insBadSchemeSpecificPart( CompletionStatus cs ) { 678 return insBadSchemeSpecificPart( cs, null ) ; 679 } 680 681 public INTERNAL insBadSchemeSpecificPart( Throwable t ) { 682 return insBadSchemeSpecificPart( CompletionStatus.COMPLETED_NO, t ) ; 683 } 684 685 public INTERNAL insBadSchemeSpecificPart( ) { 686 return insBadSchemeSpecificPart( CompletionStatus.COMPLETED_NO, null ) ; 687 } 688 689 public static final int INS_OTHER = SUNVMCID.value + 708 ; 690 691 public INTERNAL insOther( CompletionStatus cs, Throwable t ) { 692 INTERNAL exc = new INTERNAL ( INS_OTHER, cs ) ; 693 if (t != null) 694 exc.initCause( t ) ; 695 696 if (logger.isLoggable( Level.WARNING )) { 697 Object [] parameters = null ; 698 doLog( Level.WARNING, "NAMING.insOther", 699 parameters, NamingSystemException.class, exc ) ; 700 } 701 702 return exc ; 703 } 704 705 public INTERNAL insOther( CompletionStatus cs ) { 706 return insOther( cs, null ) ; 707 } 708 709 public INTERNAL insOther( Throwable t ) { 710 return insOther( CompletionStatus.COMPLETED_NO, t ) ; 711 } 712 713 public INTERNAL insOther( ) { 714 return insOther( CompletionStatus.COMPLETED_NO, null ) ; 715 } 716 717 718 } 719 | Popular Tags |