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