Class AbstractException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.lucimber.dbus.exception.AbstractException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AccessDeniedException, AddressInUseException, AuthFailedException, BadAddressException, DisconnectedException, FailedException, FileExistsException, FileNotFoundException, InconsistentMessageException, InteractiveAuthorizationRequiredException, InvalidArgsException, InvalidSignatureException, IOErrorException, LimitsExceededException, MatchRuleInvalidException, MatchRuleNotFoundException, NameHasNoOwnerException, NoMemoryException, NoNetworkException, NoReplyException, NoServerException, NotSupportedException, PropertyReadOnlyException, ServiceUnknownException, TimeoutException, UnixProcessIdUnknownException, UnknownInterfaceException, UnknownMethodException, UnknownObjectException, UnknownPropertyException

public abstract class AbstractException extends Exception
Base class for exceptions related to this framework.
See Also:
  • Constructor Details

    • AbstractException

      public AbstractException(DBusString errorName)
      Constructs a new exception with the name of the error.
      Parameters:
      errorName - name of the error; e.g. org.freedesktop.DBus.Error.AccessDenied
    • AbstractException

      public AbstractException(DBusString errorName, DBusString message)
      Constructs a new exception with the name of the error and detail message.
      Parameters:
      errorName - name of the error; e.g. org.freedesktop.DBus.Error.AccessDenied
      message - detail message
    • AbstractException

      public AbstractException(DBusString errorName, Throwable cause)
      Constructs a new exception with the name of the error and cause.
      Parameters:
      errorName - name of the error; e.g. org.freedesktop.DBus.Error.AccessDenied
      cause - the cause
    • AbstractException

      public AbstractException(DBusString errorName, DBusString message, Throwable cause)
      Constructs a new exception with the name of the error, detail message and cause.
      Parameters:
      errorName - name of the error; e.g. org.freedesktop.DBus.Error.AccessDenied
      message - the detail message
      cause - the cause
  • Method Details

    • getErrorName

      public DBusString getErrorName()
      Gets the name of the error. E.g. org.freedesktop.DBus.Error.AccessDenied
      Returns:
      name of error as DBusString