Interface LocatorExceptionHandler

  • All Known Implementing Classes:
    AbstractLocatorExceptionHandler, LoggingExceptionHandler

    public interface LocatorExceptionHandler
    Classes that implement this interface will handle exceptions thrown while locating classes Use cases: logging, adding error messages to WebStudio, rethrowing unchecked exception etc.
    Author:
    NSamatov
    • Method Detail

      • handleURLParseException

        void handleURLParseException​(Exception e)
        Handle exceptions thrown when resource URL is parsed
        Parameters:
        e - exception
      • handleClassInstatiateException

        void handleClassInstatiateException​(Throwable t)
        Handle exceptions thrown when class is instantiated
        Parameters:
        t - exception. Note: sometimes ClassLoader can throw a subclass of Error while a class instantiating.
      • handleIOException

        void handleIOException​(IOException e)
        Handle exceptions thrown when Input/Output operations is performed
        Parameters:
        e - exception