|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.io.IOException | +--au.com.prunge.jgenfile.JGenFileException | +--au.com.prunge.jgenfile.PartialCopyException
An exception that occurs when a copy item operation attempts to copy a directory containing multiple files and only some of the files could be copied successfully.
It may be possible to get references to the items that could not be copied with the getNonCopiedItemReferences() method.
Constructor Summary | |
PartialCopyException()
Constructs a PartialCopyException . |
|
PartialCopyException(Map nonCopiedItemReferenceToExceptionMap)
Constructs a PartialCopyException
with a mapping of relative item references which
could not be copied as keys and PFileExceptions
which caused each copy to fail as values in the
map. |
|
PartialCopyException(Set nonCopiedItemReferenceSet)
Constructs a PartialCopyException
with a set of item references for items that could
not be copied. |
|
PartialCopyException(String s)
Constructs a PartialCopyException
with a detail message. |
|
PartialCopyException(String s,
Map nonCopiedItemReferenceToExceptionMap)
Constructs a PartialCopyException
with a mapping of relative item references which
could not be copied as keys and PFileExceptions
which caused each copy to fail as values in the
map. |
|
PartialCopyException(String s,
Set nonCopiedItemReferenceSet)
Constructs a PartialCopyException
with a set of item references for items that could
not be copied and a detail message. |
Method Summary | |
Set |
getNonCopiedItemReferenceSet()
Returns a set of references to items that could not be copied. |
Map |
getNonCopiedItemReferenceToExceptionMap()
Returns a map of references to items that could not be copied as keys and exceptions as values for each item indicating why each copy failed. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PartialCopyException()
PartialCopyException
.
public PartialCopyException(String s)
PartialCopyException
with a detail message.
s
- the detail message.public PartialCopyException(Set nonCopiedItemReferenceSet)
PartialCopyException
with a set of item references for items that could
not be copied.
nonCopiedItemReferenceSet
- a set of
relative item references
of items that
could not be copied.
NullPointerException
- if nonCopiedItemReferenceList
is null.public PartialCopyException(Map nonCopiedItemReferenceToExceptionMap)
PartialCopyException
with a mapping of relative item references which
could not be copied as keys and PFileExceptions
which caused each copy to fail as values in the
map.
nonCopiedItemReferenceToExceptionMap
- a map of relative item references of items that
could not be copied with values being the
PFileExceptions that caused each copy to fail.
Map keys are RelativeItemReference objects.
Map values are PFileExceptions (or subclasses).
NullPointerException
- if nonCopiedItemReferenceToExceptionMap
is null.public PartialCopyException(String s, Set nonCopiedItemReferenceSet)
PartialCopyException
with a set of item references for items that could
not be copied and a detail message.
s
- the detail message.nonCopiedItemReferenceSet
- a set of
relative item references
of items that
could not be copied.
NullPointerException
- if nonCopiedItemReferenceList
is null.public PartialCopyException(String s, Map nonCopiedItemReferenceToExceptionMap)
PartialCopyException
with a mapping of relative item references which
could not be copied as keys and PFileExceptions
which caused each copy to fail as values in the
map. Also has a detail message.
s
- the detail message.nonCopiedItemReferenceToExceptionMap
- a map of relative item references of items that
could not be copied with values being the
PFileExceptions that caused each copy to fail.
Map keys are RelativeItemReference objects.
Map values are PFileExceptions (or subclasses).
NullPointerException
- if nonCopiedItemReferenceToExceptionMap
is null.Method Detail |
public Set getNonCopiedItemReferenceSet()
public Map getNonCopiedItemReferenceToExceptionMap()
Returns null if the items that were not copied could not be determined.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |