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.BAD_INV_ORDER ; 24 import org.omg.CORBA.COMM_FAILURE ; 25 import org.omg.CORBA.INTERNAL ; 26 import org.omg.CORBA.NO_IMPLEMENT ; 27 import org.omg.CORBA.OBJECT_NOT_EXIST ; 28 import org.omg.CORBA.UNKNOWN ; 29 30 public class InterceptorsSystemException extends LogWrapperBase { 31 32 public InterceptorsSystemException( Logger logger ) 33 { 34 super( logger ) ; 35 } 36 37 private static LogWrapperFactory factory = new LogWrapperFactory() { 38 public LogWrapperBase create( Logger logger ) 39 { 40 return new InterceptorsSystemException( logger ) ; 41 } 42 } ; 43 44 public static InterceptorsSystemException get( ORB orb, String logDomain ) 45 { 46 InterceptorsSystemException wrapper = 47 (InterceptorsSystemException) orb.getLogWrapper( logDomain, 48 "INTERCEPTORS", factory ) ; 49 return wrapper ; 50 } 51 52 public static InterceptorsSystemException get( String logDomain ) 53 { 54 InterceptorsSystemException wrapper = 55 (InterceptorsSystemException) ORB.staticGetLogWrapper( logDomain, 56 "INTERCEPTORS", factory ) ; 57 return wrapper ; 58 } 59 60 64 public static final int TYPE_OUT_OF_RANGE = SUNVMCID.value + 801 ; 65 66 public BAD_PARAM typeOutOfRange( CompletionStatus cs, Throwable t, Object arg0) { 67 BAD_PARAM exc = new BAD_PARAM ( TYPE_OUT_OF_RANGE, cs ) ; 68 if (t != null) 69 exc.initCause( t ) ; 70 71 if (logger.isLoggable( Level.WARNING )) { 72 Object [] parameters = new Object [1] ; 73 parameters[0] = arg0 ; 74 doLog( Level.WARNING, "INTERCEPTORS.typeOutOfRange", 75 parameters, InterceptorsSystemException.class, exc ) ; 76 } 77 78 return exc ; 79 } 80 81 public BAD_PARAM typeOutOfRange( CompletionStatus cs, Object arg0) { 82 return typeOutOfRange( cs, null, arg0 ) ; 83 } 84 85 public BAD_PARAM typeOutOfRange( Throwable t, Object arg0) { 86 return typeOutOfRange( CompletionStatus.COMPLETED_NO, t, arg0 ) ; 87 } 88 89 public BAD_PARAM typeOutOfRange( Object arg0) { 90 return typeOutOfRange( CompletionStatus.COMPLETED_NO, null, arg0 ) ; 91 } 92 93 public static final int NAME_NULL = SUNVMCID.value + 802 ; 94 95 public BAD_PARAM nameNull( CompletionStatus cs, Throwable t ) { 96 BAD_PARAM exc = new BAD_PARAM ( NAME_NULL, cs ) ; 97 if (t != null) 98 exc.initCause( t ) ; 99 100 if (logger.isLoggable( Level.WARNING )) { 101 Object [] parameters = null ; 102 doLog( Level.WARNING, "INTERCEPTORS.nameNull", 103 parameters, InterceptorsSystemException.class, exc ) ; 104 } 105 106 return exc ; 107 } 108 109 public BAD_PARAM nameNull( CompletionStatus cs ) { 110 return nameNull( cs, null ) ; 111 } 112 113 public BAD_PARAM nameNull( Throwable t ) { 114 return nameNull( CompletionStatus.COMPLETED_NO, t ) ; 115 } 116 117 public BAD_PARAM nameNull( ) { 118 return nameNull( CompletionStatus.COMPLETED_NO, null ) ; 119 } 120 121 125 public static final int RIR_INVALID_PRE_INIT = SUNVMCID.value + 801 ; 126 127 public BAD_INV_ORDER rirInvalidPreInit( CompletionStatus cs, Throwable t ) { 128 BAD_INV_ORDER exc = new BAD_INV_ORDER ( RIR_INVALID_PRE_INIT, cs ) ; 129 if (t != null) 130 exc.initCause( t ) ; 131 132 if (logger.isLoggable( Level.WARNING )) { 133 Object [] parameters = null ; 134 doLog( Level.WARNING, "INTERCEPTORS.rirInvalidPreInit", 135 parameters, InterceptorsSystemException.class, exc ) ; 136 } 137 138 return exc ; 139 } 140 141 public BAD_INV_ORDER rirInvalidPreInit( CompletionStatus cs ) { 142 return rirInvalidPreInit( cs, null ) ; 143 } 144 145 public BAD_INV_ORDER rirInvalidPreInit( Throwable t ) { 146 return rirInvalidPreInit( CompletionStatus.COMPLETED_NO, t ) ; 147 } 148 149 public BAD_INV_ORDER rirInvalidPreInit( ) { 150 return rirInvalidPreInit( CompletionStatus.COMPLETED_NO, null ) ; 151 } 152 153 public static final int BAD_STATE1 = SUNVMCID.value + 802 ; 154 155 public BAD_INV_ORDER badState1( CompletionStatus cs, Throwable t, Object arg0, Object arg1) { 156 BAD_INV_ORDER exc = new BAD_INV_ORDER ( BAD_STATE1, cs ) ; 157 if (t != null) 158 exc.initCause( t ) ; 159 160 if (logger.isLoggable( Level.WARNING )) { 161 Object [] parameters = new Object [2] ; 162 parameters[0] = arg0 ; 163 parameters[1] = arg1 ; 164 doLog( Level.WARNING, "INTERCEPTORS.badState1", 165 parameters, InterceptorsSystemException.class, exc ) ; 166 } 167 168 return exc ; 169 } 170 171 public BAD_INV_ORDER badState1( CompletionStatus cs, Object arg0, Object arg1) { 172 return badState1( cs, null, arg0, arg1 ) ; 173 } 174 175 public BAD_INV_ORDER badState1( Throwable t, Object arg0, Object arg1) { 176 return badState1( CompletionStatus.COMPLETED_NO, t, arg0, arg1 ) ; 177 } 178 179 public BAD_INV_ORDER badState1( Object arg0, Object arg1) { 180 return badState1( CompletionStatus.COMPLETED_NO, null, arg0, arg1 ) ; 181 } 182 183 public static final int BAD_STATE2 = SUNVMCID.value + 803 ; 184 185 public BAD_INV_ORDER badState2( CompletionStatus cs, Throwable t, Object arg0, Object arg1, Object arg2) { 186 BAD_INV_ORDER exc = new BAD_INV_ORDER ( BAD_STATE2, cs ) ; 187 if (t != null) 188 exc.initCause( t ) ; 189 190 if (logger.isLoggable( Level.WARNING )) { 191 Object [] parameters = new Object [3] ; 192 parameters[0] = arg0 ; 193 parameters[1] = arg1 ; 194 parameters[2] = arg2 ; 195 doLog( Level.WARNING, "INTERCEPTORS.badState2", 196 parameters, InterceptorsSystemException.class, exc ) ; 197 } 198 199 return exc ; 200 } 201 202 public BAD_INV_ORDER badState2( CompletionStatus cs, Object arg0, Object arg1, Object arg2) { 203 return badState2( cs, null, arg0, arg1, arg2 ) ; 204 } 205 206 public BAD_INV_ORDER badState2( Throwable t, Object arg0, Object arg1, Object arg2) { 207 return badState2( CompletionStatus.COMPLETED_NO, t, arg0, arg1, arg2 ) ; 208 } 209 210 public BAD_INV_ORDER badState2( Object arg0, Object arg1, Object arg2) { 211 return badState2( CompletionStatus.COMPLETED_NO, null, arg0, arg1, arg2 ) ; 212 } 213 214 218 public static final int IOEXCEPTION_DURING_CANCEL_REQUEST = SUNVMCID.value + 801 ; 219 220 public COMM_FAILURE ioexceptionDuringCancelRequest( CompletionStatus cs, Throwable t ) { 221 COMM_FAILURE exc = new COMM_FAILURE ( IOEXCEPTION_DURING_CANCEL_REQUEST, cs ) ; 222 if (t != null) 223 exc.initCause( t ) ; 224 225 if (logger.isLoggable( Level.WARNING )) { 226 Object [] parameters = null ; 227 doLog( Level.WARNING, "INTERCEPTORS.ioexceptionDuringCancelRequest", 228 parameters, InterceptorsSystemException.class, exc ) ; 229 } 230 231 return exc ; 232 } 233 234 public COMM_FAILURE ioexceptionDuringCancelRequest( CompletionStatus cs ) { 235 return ioexceptionDuringCancelRequest( cs, null ) ; 236 } 237 238 public COMM_FAILURE ioexceptionDuringCancelRequest( Throwable t ) { 239 return ioexceptionDuringCancelRequest( CompletionStatus.COMPLETED_NO, t ) ; 240 } 241 242 public COMM_FAILURE ioexceptionDuringCancelRequest( ) { 243 return ioexceptionDuringCancelRequest( CompletionStatus.COMPLETED_NO, null ) ; 244 } 245 246 250 public static final int EXCEPTION_WAS_NULL = SUNVMCID.value + 801 ; 251 252 public INTERNAL exceptionWasNull( CompletionStatus cs, Throwable t ) { 253 INTERNAL exc = new INTERNAL ( EXCEPTION_WAS_NULL, cs ) ; 254 if (t != null) 255 exc.initCause( t ) ; 256 257 if (logger.isLoggable( Level.WARNING )) { 258 Object [] parameters = null ; 259 doLog( Level.WARNING, "INTERCEPTORS.exceptionWasNull", 260 parameters, InterceptorsSystemException.class, exc ) ; 261 } 262 263 return exc ; 264 } 265 266 public INTERNAL exceptionWasNull( CompletionStatus cs ) { 267 return exceptionWasNull( cs, null ) ; 268 } 269 270 public INTERNAL exceptionWasNull( Throwable t ) { 271 return exceptionWasNull( CompletionStatus.COMPLETED_NO, t ) ; 272 } 273 274 public INTERNAL exceptionWasNull( ) { 275 return exceptionWasNull( CompletionStatus.COMPLETED_NO, null ) ; 276 } 277 278 public static final int OBJECT_HAS_NO_DELEGATE = SUNVMCID.value + 802 ; 279 280 public INTERNAL objectHasNoDelegate( CompletionStatus cs, Throwable t ) { 281 INTERNAL exc = new INTERNAL ( OBJECT_HAS_NO_DELEGATE, cs ) ; 282 if (t != null) 283 exc.initCause( t ) ; 284 285 if (logger.isLoggable( Level.WARNING )) { 286 Object [] parameters = null ; 287 doLog( Level.WARNING, "INTERCEPTORS.objectHasNoDelegate", 288 parameters, InterceptorsSystemException.class, exc ) ; 289 } 290 291 return exc ; 292 } 293 294 public INTERNAL objectHasNoDelegate( CompletionStatus cs ) { 295 return objectHasNoDelegate( cs, null ) ; 296 } 297 298 public INTERNAL objectHasNoDelegate( Throwable t ) { 299 return objectHasNoDelegate( CompletionStatus.COMPLETED_NO, t ) ; 300 } 301 302 public INTERNAL objectHasNoDelegate( ) { 303 return objectHasNoDelegate( CompletionStatus.COMPLETED_NO, null ) ; 304 } 305 306 public static final int DELEGATE_NOT_CLIENTSUB = SUNVMCID.value + 803 ; 307 308 public INTERNAL delegateNotClientsub( CompletionStatus cs, Throwable t ) { 309 INTERNAL exc = new INTERNAL ( DELEGATE_NOT_CLIENTSUB, cs ) ; 310 if (t != null) 311 exc.initCause( t ) ; 312 313 if (logger.isLoggable( Level.WARNING )) { 314 Object [] parameters = null ; 315 doLog( Level.WARNING, "INTERCEPTORS.delegateNotClientsub", 316 parameters, InterceptorsSystemException.class, exc ) ; 317 } 318 319 return exc ; 320 } 321 322 public INTERNAL delegateNotClientsub( CompletionStatus cs ) { 323 return delegateNotClientsub( cs, null ) ; 324 } 325 326 public INTERNAL delegateNotClientsub( Throwable t ) { 327 return delegateNotClientsub( CompletionStatus.COMPLETED_NO, t ) ; 328 } 329 330 public INTERNAL delegateNotClientsub( ) { 331 return delegateNotClientsub( CompletionStatus.COMPLETED_NO, null ) ; 332 } 333 334 public static final int OBJECT_NOT_OBJECTIMPL = SUNVMCID.value + 804 ; 335 336 public INTERNAL objectNotObjectimpl( CompletionStatus cs, Throwable t ) { 337 INTERNAL exc = new INTERNAL ( OBJECT_NOT_OBJECTIMPL, cs ) ; 338 if (t != null) 339 exc.initCause( t ) ; 340 341 if (logger.isLoggable( Level.WARNING )) { 342 Object [] parameters = null ; 343 doLog( Level.WARNING, "INTERCEPTORS.objectNotObjectimpl", 344 parameters, InterceptorsSystemException.class, exc ) ; 345 } 346 347 return exc ; 348 } 349 350 public INTERNAL objectNotObjectimpl( CompletionStatus cs ) { 351 return objectNotObjectimpl( cs, null ) ; 352 } 353 354 public INTERNAL objectNotObjectimpl( Throwable t ) { 355 return objectNotObjectimpl( CompletionStatus.COMPLETED_NO, t ) ; 356 } 357 358 public INTERNAL objectNotObjectimpl( ) { 359 return objectNotObjectimpl( CompletionStatus.COMPLETED_NO, null ) ; 360 } 361 362 public static final int EXCEPTION_INVALID = SUNVMCID.value + 805 ; 363 364 public INTERNAL exceptionInvalid( CompletionStatus cs, Throwable t ) { 365 INTERNAL exc = new INTERNAL ( EXCEPTION_INVALID, cs ) ; 366 if (t != null) 367 exc.initCause( t ) ; 368 369 if (logger.isLoggable( Level.WARNING )) { 370 Object [] parameters = null ; 371 doLog( Level.WARNING, "INTERCEPTORS.exceptionInvalid", 372 parameters, InterceptorsSystemException.class, exc ) ; 373 } 374 375 return exc ; 376 } 377 378 public INTERNAL exceptionInvalid( CompletionStatus cs ) { 379 return exceptionInvalid( cs, null ) ; 380 } 381 382 public INTERNAL exceptionInvalid( Throwable t ) { 383 return exceptionInvalid( CompletionStatus.COMPLETED_NO, t ) ; 384 } 385 386 public INTERNAL exceptionInvalid( ) { 387 return exceptionInvalid( CompletionStatus.COMPLETED_NO, null ) ; 388 } 389 390 public static final int REPLY_STATUS_NOT_INIT = SUNVMCID.value + 806 ; 391 392 public INTERNAL replyStatusNotInit( CompletionStatus cs, Throwable t ) { 393 INTERNAL exc = new INTERNAL ( REPLY_STATUS_NOT_INIT, cs ) ; 394 if (t != null) 395 exc.initCause( t ) ; 396 397 if (logger.isLoggable( Level.WARNING )) { 398 Object [] parameters = null ; 399 doLog( Level.WARNING, "INTERCEPTORS.replyStatusNotInit", 400 parameters, InterceptorsSystemException.class, exc ) ; 401 } 402 403 return exc ; 404 } 405 406 public INTERNAL replyStatusNotInit( CompletionStatus cs ) { 407 return replyStatusNotInit( cs, null ) ; 408 } 409 410 public INTERNAL replyStatusNotInit( Throwable t ) { 411 return replyStatusNotInit( CompletionStatus.COMPLETED_NO, t ) ; 412 } 413 414 public INTERNAL replyStatusNotInit( ) { 415 return replyStatusNotInit( CompletionStatus.COMPLETED_NO, null ) ; 416 } 417 418 public static final int EXCEPTION_IN_ARGUMENTS = SUNVMCID.value + 807 ; 419 420 public INTERNAL exceptionInArguments( CompletionStatus cs, Throwable t ) { 421 INTERNAL exc = new INTERNAL ( EXCEPTION_IN_ARGUMENTS, cs ) ; 422 if (t != null) 423 exc.initCause( t ) ; 424 425 if (logger.isLoggable( Level.WARNING )) { 426 Object [] parameters = null ; 427 doLog( Level.WARNING, "INTERCEPTORS.exceptionInArguments", 428 parameters, InterceptorsSystemException.class, exc ) ; 429 } 430 431 return exc ; 432 } 433 434 public INTERNAL exceptionInArguments( CompletionStatus cs ) { 435 return exceptionInArguments( cs, null ) ; 436 } 437 438 public INTERNAL exceptionInArguments( Throwable t ) { 439 return exceptionInArguments( CompletionStatus.COMPLETED_NO, t ) ; 440 } 441 442 public INTERNAL exceptionInArguments( ) { 443 return exceptionInArguments( CompletionStatus.COMPLETED_NO, null ) ; 444 } 445 446 public static final int EXCEPTION_IN_EXCEPTIONS = SUNVMCID.value + 808 ; 447 448 public INTERNAL exceptionInExceptions( CompletionStatus cs, Throwable t ) { 449 INTERNAL exc = new INTERNAL ( EXCEPTION_IN_EXCEPTIONS, cs ) ; 450 if (t != null) 451 exc.initCause( t ) ; 452 453 if (logger.isLoggable( Level.WARNING )) { 454 Object [] parameters = null ; 455 doLog( Level.WARNING, "INTERCEPTORS.exceptionInExceptions", 456 parameters, InterceptorsSystemException.class, exc ) ; 457 } 458 459 return exc ; 460 } 461 462 public INTERNAL exceptionInExceptions( CompletionStatus cs ) { 463 return exceptionInExceptions( cs, null ) ; 464 } 465 466 public INTERNAL exceptionInExceptions( Throwable t ) { 467 return exceptionInExceptions( CompletionStatus.COMPLETED_NO, t ) ; 468 } 469 470 public INTERNAL exceptionInExceptions( ) { 471 return exceptionInExceptions( CompletionStatus.COMPLETED_NO, null ) ; 472 } 473 474 public static final int EXCEPTION_IN_CONTEXTS = SUNVMCID.value + 809 ; 475 476 public INTERNAL exceptionInContexts( CompletionStatus cs, Throwable t ) { 477 INTERNAL exc = new INTERNAL ( EXCEPTION_IN_CONTEXTS, cs ) ; 478 if (t != null) 479 exc.initCause( t ) ; 480 481 if (logger.isLoggable( Level.WARNING )) { 482 Object [] parameters = null ; 483 doLog( Level.WARNING, "INTERCEPTORS.exceptionInContexts", 484 parameters, InterceptorsSystemException.class, exc ) ; 485 } 486 487 return exc ; 488 } 489 490 public INTERNAL exceptionInContexts( CompletionStatus cs ) { 491 return exceptionInContexts( cs, null ) ; 492 } 493 494 public INTERNAL exceptionInContexts( Throwable t ) { 495 return exceptionInContexts( CompletionStatus.COMPLETED_NO, t ) ; 496 } 497 498 public INTERNAL exceptionInContexts( ) { 499 return exceptionInContexts( CompletionStatus.COMPLETED_NO, null ) ; 500 } 501 502 public static final int EXCEPTION_WAS_NULL_2 = SUNVMCID.value + 810 ; 503 504 public INTERNAL exceptionWasNull2( CompletionStatus cs, Throwable t ) { 505 INTERNAL exc = new INTERNAL ( EXCEPTION_WAS_NULL_2, cs ) ; 506 if (t != null) 507 exc.initCause( t ) ; 508 509 if (logger.isLoggable( Level.WARNING )) { 510 Object [] parameters = null ; 511 doLog( Level.WARNING, "INTERCEPTORS.exceptionWasNull2", 512 parameters, InterceptorsSystemException.class, exc ) ; 513 } 514 515 return exc ; 516 } 517 518 public INTERNAL exceptionWasNull2( CompletionStatus cs ) { 519 return exceptionWasNull2( cs, null ) ; 520 } 521 522 public INTERNAL exceptionWasNull2( Throwable t ) { 523 return exceptionWasNull2( CompletionStatus.COMPLETED_NO, t ) ; 524 } 525 526 public INTERNAL exceptionWasNull2( ) { 527 return exceptionWasNull2( CompletionStatus.COMPLETED_NO, null ) ; 528 } 529 530 public static final int SERVANT_INVALID = SUNVMCID.value + 811 ; 531 532 public INTERNAL servantInvalid( CompletionStatus cs, Throwable t ) { 533 INTERNAL exc = new INTERNAL ( SERVANT_INVALID, cs ) ; 534 if (t != null) 535 exc.initCause( t ) ; 536 537 if (logger.isLoggable( Level.WARNING )) { 538 Object [] parameters = null ; 539 doLog( Level.WARNING, "INTERCEPTORS.servantInvalid", 540 parameters, InterceptorsSystemException.class, exc ) ; 541 } 542 543 return exc ; 544 } 545 546 public INTERNAL servantInvalid( CompletionStatus cs ) { 547 return servantInvalid( cs, null ) ; 548 } 549 550 public INTERNAL servantInvalid( Throwable t ) { 551 return servantInvalid( CompletionStatus.COMPLETED_NO, t ) ; 552 } 553 554 public INTERNAL servantInvalid( ) { 555 return servantInvalid( CompletionStatus.COMPLETED_NO, null ) ; 556 } 557 558 public static final int CANT_POP_ONLY_PICURRENT = SUNVMCID.value + 812 ; 559 560 public INTERNAL cantPopOnlyPicurrent( CompletionStatus cs, Throwable t ) { 561 INTERNAL exc = new INTERNAL ( CANT_POP_ONLY_PICURRENT, cs ) ; 562 if (t != null) 563 exc.initCause( t ) ; 564 565 if (logger.isLoggable( Level.WARNING )) { 566 Object [] parameters = null ; 567 doLog( Level.WARNING, "INTERCEPTORS.cantPopOnlyPicurrent", 568 parameters, InterceptorsSystemException.class, exc ) ; 569 } 570 571 return exc ; 572 } 573 574 public INTERNAL cantPopOnlyPicurrent( CompletionStatus cs ) { 575 return cantPopOnlyPicurrent( cs, null ) ; 576 } 577 578 public INTERNAL cantPopOnlyPicurrent( Throwable t ) { 579 return cantPopOnlyPicurrent( CompletionStatus.COMPLETED_NO, t ) ; 580 } 581 582 public INTERNAL cantPopOnlyPicurrent( ) { 583 return cantPopOnlyPicurrent( CompletionStatus.COMPLETED_NO, null ) ; 584 } 585 586 public static final int CANT_POP_ONLY_CURRENT_2 = SUNVMCID.value + 813 ; 587 588 public INTERNAL cantPopOnlyCurrent2( CompletionStatus cs, Throwable t ) { 589 INTERNAL exc = new INTERNAL ( CANT_POP_ONLY_CURRENT_2, cs ) ; 590 if (t != null) 591 exc.initCause( t ) ; 592 593 if (logger.isLoggable( Level.WARNING )) { 594 Object [] parameters = null ; 595 doLog( Level.WARNING, "INTERCEPTORS.cantPopOnlyCurrent2", 596 parameters, InterceptorsSystemException.class, exc ) ; 597 } 598 599 return exc ; 600 } 601 602 public INTERNAL cantPopOnlyCurrent2( CompletionStatus cs ) { 603 return cantPopOnlyCurrent2( cs, null ) ; 604 } 605 606 public INTERNAL cantPopOnlyCurrent2( Throwable t ) { 607 return cantPopOnlyCurrent2( CompletionStatus.COMPLETED_NO, t ) ; 608 } 609 610 public INTERNAL cantPopOnlyCurrent2( ) { 611 return cantPopOnlyCurrent2( CompletionStatus.COMPLETED_NO, null ) ; 612 } 613 614 public static final int PI_DSI_RESULT_IS_NULL = SUNVMCID.value + 814 ; 615 616 public INTERNAL piDsiResultIsNull( CompletionStatus cs, Throwable t ) { 617 INTERNAL exc = new INTERNAL ( PI_DSI_RESULT_IS_NULL, cs ) ; 618 if (t != null) 619 exc.initCause( t ) ; 620 621 if (logger.isLoggable( Level.WARNING )) { 622 Object [] parameters = null ; 623 doLog( Level.WARNING, "INTERCEPTORS.piDsiResultIsNull", 624 parameters, InterceptorsSystemException.class, exc ) ; 625 } 626 627 return exc ; 628 } 629 630 public INTERNAL piDsiResultIsNull( CompletionStatus cs ) { 631 return piDsiResultIsNull( cs, null ) ; 632 } 633 634 public INTERNAL piDsiResultIsNull( Throwable t ) { 635 return piDsiResultIsNull( CompletionStatus.COMPLETED_NO, t ) ; 636 } 637 638 public INTERNAL piDsiResultIsNull( ) { 639 return piDsiResultIsNull( CompletionStatus.COMPLETED_NO, null ) ; 640 } 641 642 public static final int PI_DII_RESULT_IS_NULL = SUNVMCID.value + 815 ; 643 644 public INTERNAL piDiiResultIsNull( CompletionStatus cs, Throwable t ) { 645 INTERNAL exc = new INTERNAL ( PI_DII_RESULT_IS_NULL, cs ) ; 646 if (t != null) 647 exc.initCause( t ) ; 648 649 if (logger.isLoggable( Level.WARNING )) { 650 Object [] parameters = null ; 651 doLog( Level.WARNING, "INTERCEPTORS.piDiiResultIsNull", 652 parameters, InterceptorsSystemException.class, exc ) ; 653 } 654 655 return exc ; 656 } 657 658 public INTERNAL piDiiResultIsNull( CompletionStatus cs ) { 659 return piDiiResultIsNull( cs, null ) ; 660 } 661 662 public INTERNAL piDiiResultIsNull( Throwable t ) { 663 return piDiiResultIsNull( CompletionStatus.COMPLETED_NO, t ) ; 664 } 665 666 public INTERNAL piDiiResultIsNull( ) { 667 return piDiiResultIsNull( CompletionStatus.COMPLETED_NO, null ) ; 668 } 669 670 public static final int EXCEPTION_UNAVAILABLE = SUNVMCID.value + 816 ; 671 672 public INTERNAL exceptionUnavailable( CompletionStatus cs, Throwable t ) { 673 INTERNAL exc = new INTERNAL ( EXCEPTION_UNAVAILABLE, cs ) ; 674 if (t != null) 675 exc.initCause( t ) ; 676 677 if (logger.isLoggable( Level.WARNING )) { 678 Object [] parameters = null ; 679 doLog( Level.WARNING, "INTERCEPTORS.exceptionUnavailable", 680 parameters, InterceptorsSystemException.class, exc ) ; 681 } 682 683 return exc ; 684 } 685 686 public INTERNAL exceptionUnavailable( CompletionStatus cs ) { 687 return exceptionUnavailable( cs, null ) ; 688 } 689 690 public INTERNAL exceptionUnavailable( Throwable t ) { 691 return exceptionUnavailable( CompletionStatus.COMPLETED_NO, t ) ; 692 } 693 694 public INTERNAL exceptionUnavailable( ) { 695 return exceptionUnavailable( CompletionStatus.COMPLETED_NO, null ) ; 696 } 697 698 public static final int CLIENT_INFO_STACK_NULL = SUNVMCID.value + 817 ; 699 700 public INTERNAL clientInfoStackNull( CompletionStatus cs, Throwable t ) { 701 INTERNAL exc = new INTERNAL ( CLIENT_INFO_STACK_NULL, cs ) ; 702 if (t != null) 703 exc.initCause( t ) ; 704 705 if (logger.isLoggable( Level.WARNING )) { 706 Object [] parameters = null ; 707 doLog( Level.WARNING, "INTERCEPTORS.clientInfoStackNull", 708 parameters, InterceptorsSystemException.class, exc ) ; 709 } 710 711 return exc ; 712 } 713 714 public INTERNAL clientInfoStackNull( CompletionStatus cs ) { 715 return clientInfoStackNull( cs, null ) ; 716 } 717 718 public INTERNAL clientInfoStackNull( Throwable t ) { 719 return clientInfoStackNull( CompletionStatus.COMPLETED_NO, t ) ; 720 } 721 722 public INTERNAL clientInfoStackNull( ) { 723 return clientInfoStackNull( CompletionStatus.COMPLETED_NO, null ) ; 724 } 725 726 public static final int SERVER_INFO_STACK_NULL = SUNVMCID.value + 818 ; 727 728 public INTERNAL serverInfoStackNull( CompletionStatus cs, Throwable t ) { 729 INTERNAL exc = new INTERNAL ( SERVER_INFO_STACK_NULL, cs ) ; 730 if (t != null) 731 exc.initCause( t ) ; 732 733 if (logger.isLoggable( Level.WARNING )) { 734 Object [] parameters = null ; 735 doLog( Level.WARNING, "INTERCEPTORS.serverInfoStackNull", 736 parameters, InterceptorsSystemException.class, exc ) ; 737 } 738 739 return exc ; 740 } 741 742 public INTERNAL serverInfoStackNull( CompletionStatus cs ) { 743 return serverInfoStackNull( cs, null ) ; 744 } 745 746 public INTERNAL serverInfoStackNull( Throwable t ) { 747 return serverInfoStackNull( CompletionStatus.COMPLETED_NO, t ) ; 748 } 749 750 public INTERNAL serverInfoStackNull( ) { 751 return serverInfoStackNull( CompletionStatus.COMPLETED_NO, null ) ; 752 } 753 754 public static final int MARK_AND_RESET_FAILED = SUNVMCID.value + 819 ; 755 756 public INTERNAL markAndResetFailed( CompletionStatus cs, Throwable t ) { 757 INTERNAL exc = new INTERNAL ( MARK_AND_RESET_FAILED, cs ) ; 758 if (t != null) 759 exc.initCause( t ) ; 760 761 if (logger.isLoggable( Level.WARNING )) { 762 Object [] parameters = null ; 763 doLog( Level.WARNING, "INTERCEPTORS.markAndResetFailed", 764 parameters, InterceptorsSystemException.class, exc ) ; 765 } 766 767 return exc ; 768 } 769 770 public INTERNAL markAndResetFailed( CompletionStatus cs ) { 771 return markAndResetFailed( cs, null ) ; 772 } 773 774 public INTERNAL markAndResetFailed( Throwable t ) { 775 return markAndResetFailed( CompletionStatus.COMPLETED_NO, t ) ; 776 } 777 778 public INTERNAL markAndResetFailed( ) { 779 return markAndResetFailed( CompletionStatus.COMPLETED_NO, null ) ; 780 } 781 782 public static final int SLOT_TABLE_INVARIANT = SUNVMCID.value + 820 ; 783 784 public INTERNAL slotTableInvariant( CompletionStatus cs, Throwable t, Object arg0, Object arg1) { 785 INTERNAL exc = new INTERNAL ( SLOT_TABLE_INVARIANT, cs ) ; 786 if (t != null) 787 exc.initCause( t ) ; 788 789 if (logger.isLoggable( Level.WARNING )) { 790 Object [] parameters = new Object [2] ; 791 parameters[0] = arg0 ; 792 parameters[1] = arg1 ; 793 doLog( Level.WARNING, "INTERCEPTORS.slotTableInvariant", 794 parameters, InterceptorsSystemException.class, exc ) ; 795 } 796 797 return exc ; 798 } 799 800 public INTERNAL slotTableInvariant( CompletionStatus cs, Object arg0, Object arg1) { 801 return slotTableInvariant( cs, null, arg0, arg1 ) ; 802 } 803 804 public INTERNAL slotTableInvariant( Throwable t, Object arg0, Object arg1) { 805 return slotTableInvariant( CompletionStatus.COMPLETED_NO, t, arg0, arg1 ) ; 806 } 807 808 public INTERNAL slotTableInvariant( Object arg0, Object arg1) { 809 return slotTableInvariant( CompletionStatus.COMPLETED_NO, null, arg0, arg1 ) ; 810 } 811 812 public static final int INTERCEPTOR_LIST_LOCKED = SUNVMCID.value + 821 ; 813 814 public INTERNAL interceptorListLocked( CompletionStatus cs, Throwable t ) { 815 INTERNAL exc = new INTERNAL ( INTERCEPTOR_LIST_LOCKED, cs ) ; 816 if (t != null) 817 exc.initCause( t ) ; 818 819 if (logger.isLoggable( Level.WARNING )) { 820 Object [] parameters = null ; 821 doLog( Level.WARNING, "INTERCEPTORS.interceptorListLocked", 822 parameters, InterceptorsSystemException.class, exc ) ; 823 } 824 825 return exc ; 826 } 827 828 public INTERNAL interceptorListLocked( CompletionStatus cs ) { 829 return interceptorListLocked( cs, null ) ; 830 } 831 832 public INTERNAL interceptorListLocked( Throwable t ) { 833 return interceptorListLocked( CompletionStatus.COMPLETED_NO, t ) ; 834 } 835 836 public INTERNAL interceptorListLocked( ) { 837 return interceptorListLocked( CompletionStatus.COMPLETED_NO, null ) ; 838 } 839 840 public static final int SORT_SIZE_MISMATCH = SUNVMCID.value + 822 ; 841 842 public INTERNAL sortSizeMismatch( CompletionStatus cs, Throwable t ) { 843 INTERNAL exc = new INTERNAL ( SORT_SIZE_MISMATCH, cs ) ; 844 if (t != null) 845 exc.initCause( t ) ; 846 847 if (logger.isLoggable( Level.WARNING )) { 848 Object [] parameters = null ; 849 doLog( Level.WARNING, "INTERCEPTORS.sortSizeMismatch", 850 parameters, InterceptorsSystemException.class, exc ) ; 851 } 852 853 return exc ; 854 } 855 856 public INTERNAL sortSizeMismatch( CompletionStatus cs ) { 857 return sortSizeMismatch( cs, null ) ; 858 } 859 860 public INTERNAL sortSizeMismatch( Throwable t ) { 861 return sortSizeMismatch( CompletionStatus.COMPLETED_NO, t ) ; 862 } 863 864 public INTERNAL sortSizeMismatch( ) { 865 return sortSizeMismatch( CompletionStatus.COMPLETED_NO, null ) ; 866 } 867 868 872 public static final int PI_ORB_NOT_POLICY_BASED = SUNVMCID.value + 801 ; 873 874 public NO_IMPLEMENT piOrbNotPolicyBased( CompletionStatus cs, Throwable t ) { 875 NO_IMPLEMENT exc = new NO_IMPLEMENT ( PI_ORB_NOT_POLICY_BASED, cs ) ; 876 if (t != null) 877 exc.initCause( t ) ; 878 879 if (logger.isLoggable( Level.WARNING )) { 880 Object [] parameters = null ; 881 doLog( Level.WARNING, "INTERCEPTORS.piOrbNotPolicyBased", 882 parameters, InterceptorsSystemException.class, exc ) ; 883 } 884 885 return exc ; 886 } 887 888 public NO_IMPLEMENT piOrbNotPolicyBased( CompletionStatus cs ) { 889 return piOrbNotPolicyBased( cs, null ) ; 890 } 891 892 public NO_IMPLEMENT piOrbNotPolicyBased( Throwable t ) { 893 return piOrbNotPolicyBased( CompletionStatus.COMPLETED_NO, t ) ; 894 } 895 896 public NO_IMPLEMENT piOrbNotPolicyBased( ) { 897 return piOrbNotPolicyBased( CompletionStatus.COMPLETED_NO, null ) ; 898 } 899 900 904 public static final int ORBINITINFO_INVALID = SUNVMCID.value + 801 ; 905 906 public OBJECT_NOT_EXIST orbinitinfoInvalid( CompletionStatus cs, Throwable t ) { 907 OBJECT_NOT_EXIST exc = new OBJECT_NOT_EXIST ( ORBINITINFO_INVALID, cs ) ; 908 if (t != null) 909 exc.initCause( t ) ; 910 911 if (logger.isLoggable( Level.FINE )) { 912 Object [] parameters = null ; 913 doLog( Level.FINE, "INTERCEPTORS.orbinitinfoInvalid", 914 parameters, InterceptorsSystemException.class, exc ) ; 915 } 916 917 return exc ; 918 } 919 920 public OBJECT_NOT_EXIST orbinitinfoInvalid( CompletionStatus cs ) { 921 return orbinitinfoInvalid( cs, null ) ; 922 } 923 924 public OBJECT_NOT_EXIST orbinitinfoInvalid( Throwable t ) { 925 return orbinitinfoInvalid( CompletionStatus.COMPLETED_NO, t ) ; 926 } 927 928 public OBJECT_NOT_EXIST orbinitinfoInvalid( ) { 929 return orbinitinfoInvalid( CompletionStatus.COMPLETED_NO, null ) ; 930 } 931 932 936 public static final int UNKNOWN_REQUEST_INVOKE = SUNVMCID.value + 801 ; 937 938 public UNKNOWN unknownRequestInvoke( CompletionStatus cs, Throwable t ) { 939 UNKNOWN exc = new UNKNOWN ( UNKNOWN_REQUEST_INVOKE, cs ) ; 940 if (t != null) 941 exc.initCause( t ) ; 942 943 if (logger.isLoggable( Level.FINE )) { 944 Object [] parameters = null ; 945 doLog( Level.FINE, "INTERCEPTORS.unknownRequestInvoke", 946 parameters, InterceptorsSystemException.class, exc ) ; 947 } 948 949 return exc ; 950 } 951 952 public UNKNOWN unknownRequestInvoke( CompletionStatus cs ) { 953 return unknownRequestInvoke( cs, null ) ; 954 } 955 956 public UNKNOWN unknownRequestInvoke( Throwable t ) { 957 return unknownRequestInvoke( CompletionStatus.COMPLETED_NO, t ) ; 958 } 959 960 public UNKNOWN unknownRequestInvoke( ) { 961 return unknownRequestInvoke( CompletionStatus.COMPLETED_NO, null ) ; 962 } 963 964 965 } 966 | Popular Tags |