public class UnusableEntriesException extends AtomicException
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 FormConstructor and Description |
---|
UnusableEntriesException(AtomicSerial.GetArg arg) |
UnusableEntriesException(String s,
Collection<Entry> entries,
Collection<UnusableEntryException> exceptions)
Constructs an
UnusableEntriesException with
the given message, Collection of entries that could
be unmarshalled, and Collection of UnusableEntryException s, detailing for each unusable
Entry why it could not be unmarshalled. |
Modifier and Type | Method and Description |
---|---|
Collection<Entry> |
getEntries()
Returns a
Collection of the entries that could be
unmarshalled by the operation. |
Collection<UnusableEntryException> |
getUnusableEntryExceptions()
Returns a
Collection of UnusableEntryException s
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, toString
public UnusableEntriesException(String s, Collection<Entry> entries, Collection<UnusableEntryException> exceptions)
UnusableEntriesException
with
the given message, Collection
of entries that could
be unmarshalled, and Collection
of UnusableEntryException
s, detailing for each unusable
Entry
why it could not be unmarshalled. s
- the detail message, may be null
entries
- 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
null
public UnusableEntriesException(AtomicSerial.GetArg arg) throws IOException
IOException
public Collection<Entry> 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<UnusableEntryException> getUnusableEntryExceptions()
Collection
of UnusableEntryException
s
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.