Class ExceptionHandlerImpl

java.lang.Object
com.sun.corba.ee.impl.presentation.rmi.ExceptionHandlerImpl
All Implemented Interfaces:
ExceptionHandler

public class ExceptionHandlerImpl extends Object implements ExceptionHandler
  • Field Details

  • Constructor Details

    • ExceptionHandlerImpl

      public ExceptionHandlerImpl(Class[] exceptions)
  • Method Details

    • findDeclaredException

      private int findDeclaredException(Class cls)
    • findDeclaredException

      private int findDeclaredException(String repositoryId)
    • isDeclaredException

      public boolean isDeclaredException(Class cls)
      Description copied from interface: ExceptionHandler
      Return true iff cls is an exception class that is assignment compatible with an exception declared on the method used to create this ExceptionHandler.
      Specified by:
      isDeclaredException in interface ExceptionHandler
      Parameters:
      cls - Class to check
      Returns:
      If class is a declared exception
    • writeException

      public void writeException(OutputStream os, Exception ex)
      Description copied from interface: ExceptionHandler
      Write the exception ex to os. ex must be assignment compatible with an exception declared on the method used to create this ExceptionHandler.
      Specified by:
      writeException in interface ExceptionHandler
      Parameters:
      os - Stream to write to.
      ex - Exception to write.
    • readException

      public Exception readException(ApplicationException ae)
      Description copied from interface: ExceptionHandler
      Read the exception contained in the InputStream in the ApplicationException. If ae represents an exception that is assignment compatible with an exception on the method used to create this exception handler, return the exception, otherwise return an UnexpectedException wrapping the exception in ae.
      Specified by:
      readException in interface ExceptionHandler
      Parameters:
      ae - Exception to get input stream to read exception from.
      Returns:
      Exception from from stream.
    • getRMIExceptionRW

      public ExceptionHandlerImpl.ExceptionRW getRMIExceptionRW(Class cls)