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| 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. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic 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
nullpublic 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.