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

public Class OneM2MException

extends IOException
Class Inheritance
Imports
java.io.IOException

General Exception for oneM2M.

Field Summary

Modifier and TypeField and Description
private final int
private static final long

Constructor Summary

AccessConstructor and Description
public
OneM2MException(String
The exception message.
message
,
int
The exception error code.
errorCode
)

Construct a OneM2MException with a message and an error code.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

The error code for the exception.
getErrorCode
()

Return the error code for the exception.

Field Detail

errorCodeback to summary
private final int errorCode
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.io.IOException.serialVersionUID.

Constructor Detail

OneM2MExceptionback to summary
public OneM2MException(String message, int errorCode)

Construct a OneM2MException with a message and an error code.

Parameters
message:String

The exception message.

errorCode:int

The exception error code.

Method Detail

getErrorCodeback to summary
public int getErrorCode()

Return the error code for the exception.

Returns:int

The error code for the exception.