Class AbstractLocatorException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.refcodes.exception.AbstractException
org.refcodes.p2p.P2PException
org.refcodes.p2p.AbstractLocatorException
All Implemented Interfaces:
Serializable, org.refcodes.exception.ErrorCodeAccessor, org.refcodes.exception.Trap, org.refcodes.mixin.LocatorAccessor<Object>
Direct Known Subclasses:
NoSuchDestinationException

public abstract class AbstractLocatorException extends P2PException implements org.refcodes.mixin.LocatorAccessor<Object>
Base exception for peer ID related exceptions.
See Also:
  • Constructor Details

    • AbstractLocatorException

      public AbstractLocatorException(String aMessage, Object aLocator, Throwable aCause)
      Parameters:
      aLocator - The involved peer locator.
    • AbstractLocatorException

      public AbstractLocatorException(String aMessage, Object aLocator)
      Parameters:
      aLocator - The involved peer locator.
    • AbstractLocatorException

      public AbstractLocatorException(Object aLocator, Throwable aCause)
      Parameters:
      aLocator - The involved peer locator.
    • AbstractLocatorException

      public AbstractLocatorException(String aMessage, Object aLocator, Throwable aCause, String aErrorCode)
      Parameters:
      aLocator - The involved peer locator.
    • AbstractLocatorException

      public AbstractLocatorException(String aMessage, Object aLocator, String aErrorCode)
      Parameters:
      aLocator - The involved peer locator.
    • AbstractLocatorException

      public AbstractLocatorException(Object aLocator, Throwable aCause, String aErrorCode)
      Parameters:
      aLocator - The involved peer locator.
  • Method Details

    • getLocator

      public Object getLocator()
      Specified by:
      getLocator in interface org.refcodes.mixin.LocatorAccessor<Object>
    • getPatternArguments

      public Object[] getPatternArguments()
      Specified by:
      getPatternArguments in interface org.refcodes.exception.Trap