org.freedesktop.dbus
Class Error

java.lang.Object
  extended by org.freedesktop.dbus.Message
      extended by 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
Error(Message m, Throwable e)
           
Error(String source, Message m, Throwable e)
           
Error(String dest, String errorName, long replyserial, String sig, Object... args)
           
Error(String source, String dest, String errorName, long replyserial, String sig, Object... args)
           
 
Method Summary
 DBusExecutionException getException()
          Turns this into an exception of the correct type
 void 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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

public Error(String source,
             Message m,
             Throwable e)
      throws DBusException
Throws:
DBusException

Error

public Error(Message m,
             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