Package com.lucimber.dbus.exception
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
Base class for exceptions related to this framework.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractException
(DBusString errorName) Constructs a new exception with the name of the error.AbstractException
(DBusString errorName, DBusString message) Constructs a new exception with the name of the error and detail message.AbstractException
(DBusString errorName, DBusString message, Throwable cause) Constructs a new exception with the name of the error, detail message and cause.AbstractException
(DBusString errorName, Throwable cause) Constructs a new exception with the name of the error and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AbstractException
Constructs a new exception with the name of the error.- Parameters:
errorName
- name of the error; e.g.org.freedesktop.DBus.Error.AccessDenied
-
AbstractException
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
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
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 messagecause
- the cause
-
-
Method Details
-
getErrorName
Gets the name of the error. E.g.org.freedesktop.DBus.Error.AccessDenied
- Returns:
- name of error as
DBusString
-