Package org.freedesktop.dbus.errors
Class Error
java.lang.Object
org.freedesktop.dbus.messages.Message
org.freedesktop.dbus.errors.Error
Error messages which can be sent over the bus.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.freedesktop.dbus.messages.Message
Message.ArgumentType, Message.Endian, Message.Flags, Message.HeaderField, Message.MessageType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final org.slf4j.LoggerFields inherited from class org.freedesktop.dbus.messages.Message
logger, MAXIMUM_ARRAY_LENGTH, MAXIMUM_MESSAGE_LENGTH, MAXIMUM_NUM_UNIX_FDS, PROTOCOL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Class<? extends DBusExecutionException> createExceptionClass(String _name) Turns this into an exception of the correct typevoidThrow this as an exception of the correct typeMethods inherited from class org.freedesktop.dbus.messages.Message
align, append, appendByte, appendBytes, appendint, createHeaderArgs, demarshallint, demarshallint, demarshallintBig, demarshallintLittle, extract, extract, getAlignment, getByteCounter, getDestination, getEndianess, getFiledescriptors, getFlags, getHeader, getHeader, getHeaderFieldName, getHeaders, getInterface, getName, getParameters, getPath, getReplySerial, getSerial, getSig, getSource, getType, getWiredata, getWireData, marshallint, marshallintBig, marshallintLittle, pad, padAndMarshall, setArgs, setByteCounter, setHeader, setSerial, setSource, setWiredata, toString
-
Field Details
-
DEFAULT_NULL_EXCEPTION_ERROR_MSG
- See Also:
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
Error
public Error() -
Error
public Error(String _dest, String _errorName, long _replyserial, String _sig, Object... _args) throws DBusException - Throws:
DBusException
-
Error
public Error(String _source, String _dest, String _errorName, long _replyserial, String _sig, Object... _args) throws DBusException - Throws:
DBusException
-
Error
- Throws:
DBusException
-
Error
- Throws:
DBusException
-
-
Method Details
-
createExceptionClass
-
getException
Turns this into an exception of the correct type- Returns:
- exception
-
throwException
Throw this as an exception of the correct type- Throws:
DBusExecutionException
-