public class PartialResultsReason
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
NONE
Deprecated.
There was no problem with the search.
|
static int |
OTHER
Deprecated.
There was an unspecified problem with the search.
|
static int |
SIZE_LIMIT_EXCEEDED
Deprecated.
The size limit was exceeded when performing the search.
|
static java.lang.String |
SIZE_LIMIT_KEY
Deprecated.
A key to look up size limit exceeded message in resource bundle
|
static java.lang.String |
UNSPECIFIED_ERROR_KEY
Deprecated.
A key to look up unspecified message relating to search results in resource bundle
|
| Constructor and Description |
|---|
PartialResultsReason()
Deprecated.
Default constructor.
|
PartialResultsReason(int reason,
javax.naming.NamingException e)
Deprecated.
Constructs with a problem reason and a causing exception (if any).
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Exception |
getException()
Deprecated.
Returns the exception (if any) that caused the problem with the search.
|
int |
getReason()
Deprecated.
Gets the reason (if any) for a problem with the search.
|
java.lang.String |
getReasonKey()
Deprecated.
Gets a key used to lookup an explanation for the partial search results
in a resource bundle.
|
void |
setException(java.lang.Exception e)
Deprecated.
Changes the exception (if any) that caused the problem with the search.
|
void |
setReason(int reason)
Deprecated.
Changes the reason (if any) for the problem with the search.
|
public static final int NONE
public static final int OTHER
public static final int SIZE_LIMIT_EXCEEDED
public static final java.lang.String SIZE_LIMIT_KEY
public static final java.lang.String UNSPECIFIED_ERROR_KEY
public PartialResultsReason()
public PartialResultsReason(int reason,
javax.naming.NamingException e)
reason - Reason for the problem with the search, NONE,
SIZE_LIMIT_EXCEEDED, OTHER.e - NamingException (if any) that caused the error, null if none
was generated.public int getReason()
public void setReason(int reason)
reason - Reason for the problem with the search, NONE,
SIZE_LIMIT_EXCEEDED, OTHER.public java.lang.Exception getException()
public void setException(java.lang.Exception e)
e - Exception (if any) that caused the error, null if none
was generated.public java.lang.String getReasonKey()