Package org.freedesktop.dbus
Class Error
- java.lang.Object
-
- org.freedesktop.dbus.Message
-
- org.freedesktop.dbus.Error
-
public class Error extends Message
Error messages which can be sent over the bus.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.freedesktop.dbus.Message
Message.ArgumentType, Message.Endian, Message.Flags, Message.HeaderField, Message.MessageType
-
-
Field Summary
-
Fields inherited from class org.freedesktop.dbus.Message
bytecounter, flags, globalserial, headers, PROTOCOL, protover, serial, type, wiredata
-
-
Constructor Summary
Constructors Constructor Description Error(java.lang.String dest, java.lang.String errorName, long replyserial, java.lang.String sig, java.lang.Object... args)
Error(java.lang.String source, java.lang.String dest, java.lang.String errorName, long replyserial, java.lang.String sig, java.lang.Object... args)
Error(java.lang.String source, Message m, java.lang.Throwable e)
Error(Message m, java.lang.Throwable e)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DBusExecutionException
getException()
Turns this into an exception of the correct typevoid
throwException()
Throw this as an exception of the correct type-
Methods inherited from class org.freedesktop.dbus.Message
align, append, appendByte, appendBytes, appendint, demarshallint, demarshallint, demarshallintBig, demarshallintLittle, extract, extract, getAlignment, getDestination, getFlags, getHeader, getHeaderFieldName, getInterface, getName, getParameters, getPath, getReplySerial, getSerial, getSig, getSource, getWireData, marshallint, marshallintBig, marshallintLittle, pad, setArgs, setSource, toString
-
-
-
-
Constructor Detail
-
Error
public Error(java.lang.String dest, java.lang.String errorName, long replyserial, java.lang.String sig, java.lang.Object... args) throws DBusException
- Throws:
DBusException
-
Error
public Error(java.lang.String source, java.lang.String dest, java.lang.String errorName, long replyserial, java.lang.String sig, java.lang.Object... args) throws DBusException
- Throws:
DBusException
-
Error
public Error(java.lang.String source, Message m, java.lang.Throwable e) throws DBusException
- Throws:
DBusException
-
Error
public Error(Message m, java.lang.Throwable e) throws DBusException
- Throws:
DBusException
-
-
Method Detail
-
getException
public DBusExecutionException getException()
Turns this into an exception of the correct type
-
throwException
public void throwException() throws DBusExecutionException
Throw this as an exception of the correct type- Throws:
DBusExecutionException
-
-