public class UnusableEntriesException extends Exception
Entry instances when one or more of the entries can't be
unmarshalled. Contains copies of any entries that could be
unmarshalled and an UnusableEntryException for each
Entry that could not be.UnusableEntryException,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
private Collection |
entries
The entries that could be unmarshalled
|
private Collection |
exceptions
Exceptions detailing why certain entries could not
be unmarshalled.
|
private static long |
serialVersionUID |
| Constructor and Description |
|---|
UnusableEntriesException(String s,
Collection entries,
Collection exceptions)
Constructs an
UnusableEntriesException with
the given message, Collection of entries that could
be unmarshalled, and Collection of UnusableEntryExceptions, detailing for each unusable
Entry why it could not be unmarshalled. |
| Modifier and Type | Method and Description |
|---|---|
Collection |
getEntries()
Returns a
Collection of the entries that could be
unmarshalled by the operation. |
Collection |
getUnusableEntryExceptions()
Returns a
Collection of UnusableEntryExceptions
with one element for each Entry that could not be
unmarshalled by the operation. |
private void |
readObject(ObjectInputStream in) |
private void |
readObjectNoData() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprivate static final long serialVersionUID
private final Collection entries
private final Collection exceptions
public UnusableEntriesException(String s, Collection entries, Collection exceptions)
UnusableEntriesException with
the given message, Collection of entries that could
be unmarshalled, and Collection of UnusableEntryExceptions, detailing for each unusable
Entry why it could not be unmarshalled. s - the detail message, may be nullentries - Collection of Entry
instances that could be unmarshalled, may be
empty or null. Note, if
non-null, the passed instance
will be returned by the getEntries()
methodexceptions - Collection of UnusableEntryException instances. Note, the
passed instance will be returned by the getUnusableEntryExceptions() methodIllegalArgumentException - if entries
contains an element that is not an
Entry, if
exceptions contains an element
that is not an
UnusableEntryException, or if
exceptions is emptyNullPointerException - if exceptions is
null, any element of
exceptions is null,
or any element of entries is
nullprivate void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
InvalidObjectException - if the entries
field is null, or contains an element which is not
an Entry. Also throws an
InvalidObjectException if the
exceptions field is null, empty, or contains
an element which is not an UnusableEntryExceptionIOExceptionClassNotFoundExceptionprivate void readObjectNoData()
throws InvalidObjectException
InvalidObjectException - if calledpublic Collection getEntries()
Collection of the entries that could be
unmarshalled by the operation. If no entries could be
unmarshalled, an empty Collection will be returned.
Result may be immutable.Collection of Entry
instances that could be unmarshalledpublic Collection getUnusableEntryExceptions()
Collection of UnusableEntryExceptions
with one element for each Entry that could not be
unmarshalled by the operation. Will be non-null
and non-empty. Result may be immutable.Collection of UnusableEntryException
instances with one element for each Entry that
that could not be unmarshalledCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.