Top Description Fields Constructors
javax.portlet

public Class ReadOnlyException

extends PortletException
Class Inheritance

The ReadOnlyException is thrown when a portlet tries to change the value for a read-only preference attribute.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
ReadOnlyException(String
the exception text
text
)

Constructs a new read-only exception with the given text.

public
ReadOnlyException(String
the exception text
text
,
Throwable
the root cause
cause
)

Constructs a new read-only exception when the portlet needs to do the following:

    <il>throw an exception
  • include a message about the "root cause" that interfered with its normal operation
  • include a description message
public
ReadOnlyException(Throwable
the root cause
cause
)

Constructs a new read-only exception when the portlet needs to throw an exception.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.portlet.PortletException.serialVersionUID.

Constructor Detail

ReadOnlyExceptionback to summary
public ReadOnlyException(String text)

Constructs a new read-only exception with the given text. The portlet container may use the text write it to a log.

Parameters
text:String

the exception text

ReadOnlyExceptionback to summary
public ReadOnlyException(String text, Throwable cause)

Constructs a new read-only exception when the portlet needs to do the following:

    throw an exception
  • include a message about the "root cause" that interfered with its normal operation
  • include a description message
Parameters
text:String

the exception text

cause:Throwable

the root cause

ReadOnlyExceptionback to summary
public ReadOnlyException(Throwable cause)

Constructs a new read-only exception when the portlet needs to throw an exception. The exception message is based on the localized message of the underlying exception.

Parameters
cause:Throwable

the root cause