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 interfaceExceptionHandlerImpl.ExceptionRWclassExceptionHandlerImpl.ExceptionRWBaseclassExceptionHandlerImpl.ExceptionRWIDLImplclassExceptionHandlerImpl.ExceptionRWRMIImpl
-
Field Summary
Fields Modifier and Type Field Description private ExceptionHandlerImpl.ExceptionRW[]rwsprivate static ORBUtilSystemExceptionwrapper
-
Constructor Summary
Constructors Constructor Description ExceptionHandlerImpl(java.lang.Class[] exceptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private intfindDeclaredException(java.lang.Class cls)private intfindDeclaredException(java.lang.String repositoryId)ExceptionHandlerImpl.ExceptionRWgetRMIExceptionRW(java.lang.Class cls)booleanisDeclaredException(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.ExceptionreadException(ApplicationException ae)Read the exception contained in the InputStream in the ApplicationException.voidwriteException(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:ExceptionHandlerReturn 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:
isDeclaredExceptionin 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:ExceptionHandlerWrite the exception ex to os. ex must be assignment compatible with an exception declared on the method used to create this ExceptionHandler.- Specified by:
writeExceptionin interfaceExceptionHandler- Parameters:
os- Stream to write to.ex- Exception to write.
-
readException
public java.lang.Exception readException(ApplicationException ae)
Description copied from interface:ExceptionHandlerRead 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:
readExceptionin 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)
-
-