Top Description Fields Constructors Methods
org.freedesktop.dbus.messages

public Class Error

extends Message
Class Inheritance
Static Imports
org.freedesktop.dbus.utils.CommonRegexPattern.EXCEPTION_EXTRACT_PATTERN, .CommonRegexPattern.EXCEPTION_PARTIAL_PATTERN

Error messages which can be sent over the bus.

Field Summary

Modifier and TypeField and Description
private static final String
private static final Logger
Inherited from org.freedesktop.dbus.messages.Message:
loggerMAXIMUM_ARRAY_LENGTHMAXIMUM_MESSAGE_LENGTHMAXIMUM_NUM_UNIX_FDSPROTOCOL

Constructor Summary

AccessConstructor and Description
protected
protected
Error(byte _endianess, String _dest, String _errorName, long _replyserial, String _sig, Object... _args)

protected
Error(byte _endianess, String _source, String _dest, String _errorName, long _replyserial, String _sig, Object... _args)

protected
Error(byte _endianess, String _source, Message _m, Throwable _ex)

protected
Error(byte _endianess, Message _m, Throwable _ex)

Method Summary

Modifier and TypeMethod and Description
private static Class<? extends DBusExecutionException>
public DBusExecutionException

Returns:

exception
getException
()

Turns this into an exception of the correct type

public void
throwException()

Throw this as an exception of the correct type

Inherited from org.freedesktop.dbus.messages.Message:
alignappendappendByteappendBytesappendintcreateHeaderArgsdemarshallintdemarshallintdemarshallintBigdemarshallintLittledumpWireDataextractextractextractextractHeadergetAlignmentgetBodylengetByteCountergetDestinationgetEndianessgetFiledescriptorsgetFlagsgetHeadergetHeadergetHeaderFieldNamegetInterfacegetNamegetParametersgetParametersgetPathgetProtovergetReplySerialgetSerialgetSiggetSourcegetTypegetWireDatamarshallintmarshallintBigmarshallintLittlepadpadAndMarshallpopulatesetArgssetByteCountersetHeadersetSerialsetSourcesetWireDatatoStringupdateEndianessusesPrimitives

Field Detail

DEFAULT_NULL_EXCEPTION_ERROR_MSGback to summary
private static final String DEFAULT_NULL_EXCEPTION_ERROR_MSG
LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

Errorback to summary
protected Error()
Errorback to summary
protected Error(byte _endianess, String _dest, String _errorName, long _replyserial, String _sig, Object... _args) throws DBusException
Errorback to summary
protected Error(byte _endianess, String _source, String _dest, String _errorName, long _replyserial, String _sig, Object... _args) throws DBusException
Errorback to summary
protected Error(byte _endianess, String _source, Message _m, Throwable _ex) throws DBusException
Errorback to summary
protected Error(byte _endianess, Message _m, Throwable _ex) throws DBusException

Method Detail

createExceptionClassback to summary
private static Class<? extends DBusExecutionException> createExceptionClass(String _name)
Annotations
@SuppressWarnings:unchecked
getExceptionback to summary
public DBusExecutionException getException()

Turns this into an exception of the correct type

Returns:DBusExecutionException

exception

throwExceptionback to summary
public void throwException() throws DBusExecutionException

Throw this as an exception of the correct type