Top Description Fields Constructors
org.osgi.util.converter

public Class ConversionException

extends RuntimeException
Class Inheritance

This Runtime Exception is thrown when an object is requested to be converted but the conversion cannot be done. For example when the String "test" is to be converted into a Long.
Author
$Id: e3b337340626071241d686f2a1c4118511c37d11 $

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
ConversionException(String
The message for this exception.
message
)

Create a Conversion Exception with a message.

public
ConversionException(String
The message for this exception.
message
,
Throwable
The causing exception.
cause
)

Create a Conversion Exception with a message and a nested cause.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

ConversionExceptionback to summary
public ConversionException(String message)

Create a Conversion Exception with a message.

Parameters
message:String

The message for this exception.

ConversionExceptionback to summary
public ConversionException(String message, Throwable cause)

Create a Conversion Exception with a message and a nested cause.

Parameters
message:String

The message for this exception.

cause:Throwable

The causing exception.