Class ExceptionHandlerImpl
- java.lang.Object
-
- com.sun.corba.ee.impl.presentation.rmi.ExceptionHandlerImpl
-
- All Implemented Interfaces:
ExceptionHandler
public class ExceptionHandlerImpl extends java.lang.Object implements ExceptionHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ExceptionHandlerImpl.ExceptionRW
class
ExceptionHandlerImpl.ExceptionRWBase
class
ExceptionHandlerImpl.ExceptionRWIDLImpl
class
ExceptionHandlerImpl.ExceptionRWRMIImpl
-
Field Summary
Fields Modifier and Type Field Description private ExceptionHandlerImpl.ExceptionRW[]
rws
private static ORBUtilSystemException
wrapper
-
Constructor Summary
Constructors Constructor Description ExceptionHandlerImpl(java.lang.Class[] exceptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private int
findDeclaredException(java.lang.Class cls)
private int
findDeclaredException(java.lang.String repositoryId)
ExceptionHandlerImpl.ExceptionRW
getRMIExceptionRW(java.lang.Class cls)
boolean
isDeclaredException(java.lang.Class cls)
Return true iff cls is an exception class that is assignment compatible with an exception declared on the method used to create this ExceptionHandler.java.lang.Exception
readException(ApplicationException ae)
Read the exception contained in the InputStream in the ApplicationException.void
writeException(OutputStream os, java.lang.Exception ex)
Write the exception ex to os.
-
-
-
Field Detail
-
wrapper
private static final ORBUtilSystemException wrapper
-
rws
private ExceptionHandlerImpl.ExceptionRW[] rws
-
-
Method Detail
-
findDeclaredException
private int findDeclaredException(java.lang.Class cls)
-
findDeclaredException
private int findDeclaredException(java.lang.String repositoryId)
-
isDeclaredException
public boolean isDeclaredException(java.lang.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 interfaceExceptionHandler
- Parameters:
cls
- Class to check- Returns:
- If class is a declared exception
-
writeException
public void writeException(OutputStream os, java.lang.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 interfaceExceptionHandler
- Parameters:
os
- Stream to write to.ex
- Exception to write.
-
readException
public java.lang.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 interfaceExceptionHandler
- Parameters:
ae
- Exception to get input stream to read exception from.- Returns:
- Exception from from stream.
-
getRMIExceptionRW
public ExceptionHandlerImpl.ExceptionRW getRMIExceptionRW(java.lang.Class cls)
-
-