public class UnusableEntryException extends Exception
Entryfrom a service, but the entry is unusable (due to serialization or other errors). Normally
partialEntrypoints to an entry with as many fields as possible filled in, with the array
unusableFieldsnaming the fields that could not be deserialized and the array
nestedExceptionshaving the corresponding exception.
If the serialized
Entry was corrupt enough that no
attempt could even be made to deserialize its fields,
unusableFields will be
nestedExceptions will be
an array with one element that is the offending exception. This will typically be because one or
more of the classes of the
Entry type itself cannot be loaded.
The names in
unusableFields can be used together with the reflection mechanisms of
java.lang.reflect to examine the full state of the object.
|Modifier and Type||Field and Description|
The exception that caused the failure for the corresponding field named in unusableFields.
The partial entry.
The names of the unusable fields.
|Constructor and Description|
Create an exception for the given partial entry and vectors of bad field names/nested exception pairs.
Create an exception for a nested exception that prevented even an attempt to build an entry.
|Modifier and Type||Method and Description|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
public Entry partialEntry
public String unusableFields
public Throwable nestedExceptions
nestedExceptionswill be an array with the one exception that prevented its use.
partial- the Entry object on which the exception occurred
badFields- a String array containing the bad field names
exceptions- an array of Throwable objects associated with the bad field names
exceptionsdoes not have exactly one element or if
exceptionsare not the same length
badFieldsor any element of
null, or if
exceptionsor any element of
public void printStackTrace()
public void printStackTrace(PrintStream s)
super.printStackTrace(s)and then calls
printStackTrace(s)on each exception in
Copyright © GigaSpaces.