Class ErrorObserverAdapter

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addErrorObserver​(ErrorObserver observer)
      Adds the given ErrorObserver to this DefaultObserver
      void receiveError​(java.lang.Exception exception)
      Signals an error with normal level
      void receiveError​(java.lang.Exception exception, int level)
      Signals an error with the given error level
      void receiveError​(java.lang.Exception exception, java.lang.String message)
      Signals an error with normal level
      void receiveError​(java.lang.Exception exception, java.lang.String message, int level)
      Signals an error with the given error level
      void receiveError​(java.lang.String message)
      Signals an error message with normal level
      void receiveError​(java.lang.String message, int level)
      Signals an error with the given error level
      void removeAllErrorObservers()
      Removes all the ErrorObservers from the cascading ErrorObserver list
      void removeErrorObserver​(ErrorObserver observer)
      Removes the given ErrorObserver from the cascading ErrorObserver list
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ErrorObserverAdapter

        public ErrorObserverAdapter()
    • Method Detail

      • addErrorObserver

        public void addErrorObserver​(ErrorObserver observer)
        Adds the given ErrorObserver to this DefaultObserver
        Parameters:
        observer - the ErrorObserver to add
      • receiveError

        public void receiveError​(java.lang.Exception exception)
        Signals an error with normal level
        Specified by:
        receiveError in interface ErrorObserver
        Parameters:
        exception - the Exception that caused the error
      • receiveError

        public void receiveError​(java.lang.Exception exception,
                                 java.lang.String message)
        Signals an error with normal level
        Specified by:
        receiveError in interface ErrorObserver
        Parameters:
        exception - the Exception that caused the error
        message - an option message, used when additional information can be provided.
      • receiveError

        public void receiveError​(java.lang.Exception exception,
                                 int level)
        Signals an error with the given error level
        Specified by:
        receiveError in interface ErrorObserver
        Parameters:
        exception - the Exception that caused the error
        level - the error level
      • receiveError

        public void receiveError​(java.lang.Exception exception,
                                 java.lang.String message,
                                 int level)
        Signals an error with the given error level
        Specified by:
        receiveError in interface ErrorObserver
        Parameters:
        exception - the Exception that caused the error
        message - an option message, used when additional information can be provided.
        level - the error level
      • receiveError

        public void receiveError​(java.lang.String message)
        Signals an error message with normal level
        Specified by:
        receiveError in interface ErrorObserver
        Parameters:
        message - the error message
      • receiveError

        public void receiveError​(java.lang.String message,
                                 int level)
        Signals an error with the given error level
        Specified by:
        receiveError in interface ErrorObserver
        Parameters:
        message - the error message
        level - the error level
      • removeAllErrorObservers

        public void removeAllErrorObservers()
        Removes all the ErrorObservers from the cascading ErrorObserver list
      • removeErrorObserver

        public void removeErrorObserver​(ErrorObserver observer)
        Removes the given ErrorObserver from the cascading ErrorObserver list
        Parameters:
        observer - the ErrorObserver to remove