Interface Exceptions


@ExceptionWrapper(idPrefix="ORBTPOOL") public interface Exceptions
Exception wrapper class. The logex WrapperGenerator uses this interface to generate an implementation which returns the appropriate exception, and generates a log report when the method is called. This is used for all implementation classes in this package. The exception IDs are allocated in blocks of EXCEPTIONS_PER_CLASS, which is a lot more than is needed, but we have 32 bits for IDs, and multiples of a suitably chosen EXCEPTIONS_PER_CLASS (like 100 here) are easy to read in error messages.
  • Field Details

  • Method Details

    • interruptedJoinCallWhileClosingThreadPool

      @Message("Join was interrrupted on thread {0} while closing ThreadPool {1}") @Log(id=1) void interruptedJoinCallWhileClosingThreadPool(@Chain InterruptedException exc, Thread wt, ThreadPoolImpl aThis)
    • workerThreadCreated

      @Message("Worker Thread {0} has been created with ClassLoader {1}") @Log(id=1, level=FINE) void workerThreadCreated(Thread thread, ClassLoader contextClassLoader)
    • workerThreadCreationFailure

      @Message("Worker thread creation failure") @Log(id=2, level=SEVERE) void workerThreadCreationFailure(@Chain Throwable t)
    • workerThreadGetContextClassloaderFailed

      @Message("Unable to get worker thread {0}; check securiy policy file: must grant \'getContextClassLoader\' runtime permission") @Log(id=3) RuntimeException workerThreadGetContextClassloaderFailed(@Chain SecurityException se, Thread aThis)
    • workerThreadForgotClassloaderReset

      @Message("Worker thread {0} context ClassLoader was changed to {1}; will attempt a reset to its initial ClassLoader {2} ") @Log(id=4, level=FINE) void workerThreadForgotClassloaderReset(Thread aThis, ClassLoader currentClassLoader, ClassLoader workerThreadClassLoader)
    • workerThreadResetContextClassloaderFailed

      @Message("Unable to set worker thread {0}; check securiy policy file: must grant \'setContextClassLoader\' runtime permission") @Log(id=6) void workerThreadResetContextClassloaderFailed(@Chain SecurityException se, Thread aThis)
    • workerThreadDoWorkThrowable

      @Message("Worker thread {0} caught throwable while executing work.") @Log(id=7) void workerThreadDoWorkThrowable(@Chain Throwable t, Thread aThis)
    • workerThreadNotNeeded

      @Message("Worker thread {0} will exit; current thread count {1} is greater than minimum worker threads needed {2}") @Log(id=8, level=FINE) void workerThreadNotNeeded(Thread aThis, int currentNumberOfThreads, int minimumNumberOfThreads)
    • workQueueThreadInterrupted

      @Message("Worker thread from thread pool {0} was interrupted: closeCalled is {1}") @Log(id=9, level=FINE) void workQueueThreadInterrupted(InterruptedException exc, String name, Boolean valueOf)
    • workerThreadThrowableFromRequestWork

      @Message("Worker thread {0} caught throwable when requesting work from work queue {1}") @Log(id=10, level=FINE) void workerThreadThrowableFromRequestWork(@Chain Throwable t, Thread aThis, String name)
    • workerThreadCaughtUnexpectedThrowable

      @Message("Worker thread {0} caught unexpected throwable") @Log(id=11) void workerThreadCaughtUnexpectedThrowable(@Chain Throwable e, Thread aThis)
    • threadPoolCloseError

      @Message("Error in closing ThreadPool") @Log(id=101) void threadPoolCloseError()
    • threadGroupIsDestroyed

      @Message("ThreadGroup {0} is already destroyed; cannot destroy it again") @Log(id=102) void threadGroupIsDestroyed(ThreadGroup thgrp)
    • threadGroupHasActiveThreadsInClose

      @Message("ThreadGroup {0} has {1} active threads: destroy may cause exceptions") @Log(id=103) void threadGroupHasActiveThreadsInClose(ThreadGroup thgrp, int numThreads)
    • threadGroupHasSubGroupsInClose

      @Message("ThreadGroup {0} has {1} sub-ThreadGroups: destroy may cause exceptions") @Log(id=104) void threadGroupHasSubGroupsInClose(ThreadGroup threadGroup, int numGroups)
    • threadGroupDestroyFailed

      @Message("ThreadGroup {0} could not be destroyed") @Log(id=105) void threadGroupDestroyFailed(@Chain IllegalThreadStateException exc, ThreadGroup threadGroup)
    • threadStateValidatorException

      @Message("Thread state validator threw an exception on validator {0}") @Log(id=201) RuntimeException threadStateValidatorException(Runnable run, @Chain Throwable exc)