Top Description Fields Constructors Methods
org.osgi.service.upnp

public Class UPnPException

extends Exception
Class Inheritance

There are several defined error situations describing UPnP problems while a control point invokes actions to UPnPDevices.
Author
$Id: 3b5197d5e2e97a396cc517e874a7ae94fa856b01 $
Since
1.1

Field Summary

Modifier and TypeField and Description
public static final int
DEVICE_INTERNAL_ERROR

The invoked action failed during execution.

private final int
errorCode

Key for an error information that is an int type variable and that is used to identify occurred errors.

public static final int
INVALID_ACTION

No Action found by that name at this service.

public static final int
INVALID_ARGS

Not enough arguments, too many arguments with a specific name, or one of more of the arguments are of the wrong type.

public static final int
INVALID_SEQUENCE_NUMBER

The different end-points are no longer in synchronization.

public static final int
INVALID_VARIABLE

Refers to a non existing variable.

pack-priv static final long

Constructor Summary

AccessConstructor and Description
public
UPnPException(int
error code which defined by UPnP Device Architecture V1.0.
errorCode
,
String
error description which explain the type of problem.
errorDescription
)

This constructor creates a UPnPException on the specified error code and error description.

public
UPnPException(int
error code which defined by UPnP Device Architecture V1.0.
errorCode
,
String
error description which explain the type of the problem.
errorDescription
,
Throwable
cause of that UPnPException.
errorCause
)

This constructor creates a UPnPException on the specified error code, error description and error cause.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

The UPnPErrorCode defined by a UPnP Forum working committee or specified by a UPnP vendor.
getUPnPError_Code
()
Deprecated As of 1.2. Replaced by getUPnPErrorCode().

Returns the UPnPError Code occurred by UPnPDevices during invocation.

public int

Returns:

The UPnPErrorCode defined by a UPnP Forum working committee or specified by a UPnP vendor.
getUPnPErrorCode
()

Returns the UPnP Error Code occurred by UPnPDevices during invocation.

Field Detail

DEVICE_INTERNAL_ERRORback to summary
public static final int DEVICE_INTERNAL_ERROR

The invoked action failed during execution.

errorCodeback to summary
private final int errorCode

Key for an error information that is an int type variable and that is used to identify occurred errors.

INVALID_ACTIONback to summary
public static final int INVALID_ACTION

No Action found by that name at this service.

INVALID_ARGSback to summary
public static final int INVALID_ARGS

Not enough arguments, too many arguments with a specific name, or one of more of the arguments are of the wrong type.

INVALID_SEQUENCE_NUMBERback to summary
public static final int INVALID_SEQUENCE_NUMBER

The different end-points are no longer in synchronization.

INVALID_VARIABLEback to summary
public static final int INVALID_VARIABLE

Refers to a non existing variable.

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Constructor Detail

UPnPExceptionback to summary
public UPnPException(int errorCode, String errorDescription)

This constructor creates a UPnPException on the specified error code and error description.

Parameters
errorCode:int

error code which defined by UPnP Device Architecture V1.0.

errorDescription:String

error description which explain the type of problem.

UPnPExceptionback to summary
public UPnPException(int errorCode, String errorDescription, Throwable errorCause)

This constructor creates a UPnPException on the specified error code, error description and error cause.

Parameters
errorCode:int

error code which defined by UPnP Device Architecture V1.0.

errorDescription:String

error description which explain the type of the problem.

errorCause:Throwable

cause of that UPnPException.

Since
1.2

Method Detail

getUPnPError_Codeback to summary
public int getUPnPError_Code()

Deprecated

As of 1.2. Replaced by getUPnPErrorCode().

Returns the UPnPError Code occurred by UPnPDevices during invocation.

Returns:int

The UPnPErrorCode defined by a UPnP Forum working committee or specified by a UPnP vendor.

getUPnPErrorCodeback to summary
public int getUPnPErrorCode()

Returns the UPnP Error Code occurred by UPnPDevices during invocation.

Returns:int

The UPnPErrorCode defined by a UPnP Forum working committee or specified by a UPnP vendor.

Since
1.2