Interface ExceptionHandler
- All Known Implementing Classes:
ExceptionHandlerImpl
public interface ExceptionHandler
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisDeclaredException(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.Read the exception contained in the InputStream in the ApplicationException.voidwriteException(OutputStream os, Exception ex) Write the exception ex to os.
-
Method Details
-
isDeclaredException
Return true iff cls is an exception class that is assignment compatible with an exception declared on the method used to create this ExceptionHandler. -
writeException
Write the exception ex to os. ex must be assignment compatible with an exception declared on the method used to create this ExceptionHandler. -
readException
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.
-