Top Description Fields Constructors Methods
javax.faces.convert

public Class ConverterException

extends FacesException
Class Inheritance
Imports
javax.faces.FacesException, javax.faces.application.FacesMessage

ConverterException is an exception thrown by the getAsObject() or getAsText() method of a Converter, to indicate that the requested conversion cannot be performed.

Field Summary

Modifier and TypeField and Description
private FacesMessage
private static final long

Constructor Summary

AccessConstructor and Description
public
ConverterException()

Construct a new exception with no detail message or root cause.

public
ConverterException(String
The detail message for this exception
message
)

Construct a new exception with the specified detail message and no root cause.

public
ConverterException(Throwable
The root cause for this exception
cause
)

Construct a new exception with the specified root cause.

public
ConverterException(String
The detail message for this exception
message
,
Throwable
The root cause for this exception
cause
)

Construct a new exception with the specified detail message and root cause.

public
ConverterException(FacesMessage
The detail message for this exception
message
)

Construct a new exception with the specified detail message and no root cause.

public
ConverterException(FacesMessage
The detail message for this exception
message
,
Throwable
The root cause for this exception
cause
)

Construct a new exception with the specified detail message and root cause.

Method Summary

Modifier and TypeMethod and Description
public FacesMessage

Returns:

the message
getFacesMessage
()

Returns the FacesMessage associated with this exception; this will only be available if the converter that thew this exception instance placed it there.

Inherited from javax.faces.FacesException:
getCause

Field Detail

facesMessageback to summary
private FacesMessage facesMessage
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.faces.FacesException.serialVersionUID.

Constructor Detail

ConverterExceptionback to summary
public ConverterException()

Construct a new exception with no detail message or root cause.

ConverterExceptionback to summary
public ConverterException(String message)

Construct a new exception with the specified detail message and no root cause.

Parameters
message:String

The detail message for this exception

ConverterExceptionback to summary
public ConverterException(Throwable cause)

Construct a new exception with the specified root cause. The detail message will be set to (cause == null ? null : cause.toString()

Parameters
cause:Throwable

The root cause for this exception

ConverterExceptionback to summary
public ConverterException(String message, Throwable cause)

Construct a new exception with the specified detail message and root cause.

Parameters
message:String

The detail message for this exception

cause:Throwable

The root cause for this exception

ConverterExceptionback to summary
public ConverterException(FacesMessage message)

Construct a new exception with the specified detail message and no root cause.

Parameters
message:FacesMessage

The detail message for this exception

ConverterExceptionback to summary
public ConverterException(FacesMessage message, Throwable cause)

Construct a new exception with the specified detail message and root cause.

Parameters
message:FacesMessage

The detail message for this exception

cause:Throwable

The root cause for this exception

Method Detail

getFacesMessageback to summary
public FacesMessage getFacesMessage()

Returns the FacesMessage associated with this exception; this will only be available if the converter that thew this exception instance placed it there.

Returns:FacesMessage

the message