Class ExceptionHandlerImpl

    • Constructor Detail

      • ExceptionHandlerImpl

        public ExceptionHandlerImpl​(java.lang.Class[] exceptions)
    • 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 interface ExceptionHandler
        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 interface ExceptionHandler
        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 interface ExceptionHandler
        Parameters:
        ae - Exception to get input stream to read exception from.
        Returns:
        Exception from from stream.