ReadOnlyException is thrown when a portlet tries
to change the value for a read-only preference attribute.
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor 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:
|
| public | ReadOnlyException(Throwable
the root cause cause)Constructs a new read-only exception when the portlet needs to throw an exception. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ReadOnlyException | back 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.
| |
| ReadOnlyException | back to summary |
|---|---|
| public ReadOnlyException(String text, Throwable cause) Constructs a new read-only exception when the portlet needs to do the following:
| |
| ReadOnlyException | back 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.
| |