|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.crystaldecisions.sdk.exception.SDKExceptionsCollector
public class SDKExceptionsCollector
This class is used to collect SDKExceptions potentially thrown in a batch operation related to multiple operations.
| Constructor Summary | |
|---|---|
SDKExceptionsCollector()
Create an empty collector. |
|
SDKExceptionsCollector(SDKExceptionsCollector other)
Construct a collector back by other collector. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the collector. |
void |
collect(SDKException e)
Adds an exception to the collector. |
SDKException |
get(int index)
Return the exception in the specified index. |
SDKException |
getAssembleExceptions()
Returns the exception assembling all the exceptions in the collector if the SDKExceptionsCollector.size() > 1,
or the exception itself if the SDKExceptionsCollector.size() == 1, or null if the collector is empty. |
int |
indexOf(SDKException e)
Finds the index of the exception. |
SDKException |
remove(int index)
Removes an exception from the collector. |
int |
size()
Returns the size of the collector. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SDKExceptionsCollector(SDKExceptionsCollector other)
other - The other collector that already collects some exceptions.public SDKExceptionsCollector()
| Method Detail |
|---|
public SDKException get(int index)
index - The index of the exception object to be returned.
public int size()
public void collect(SDKException e)
e - The exception to be collected.public SDKException remove(int index)
index - The index of the exception in the collector to be removed.
public int indexOf(SDKException e)
e - The exception of the index to be found.
public SDKException getAssembleExceptions()
SDKExceptionsCollector.size() > 1,
or the exception itself if the SDKExceptionsCollector.size() == 1, or null if the collector is empty.
public void close()
throws SDKException
SDKExceptionsCollector.size() > 1, or the exception itself
, if the SDKExceptionsCollector.size() == 1. It throws nothing if the collector is empty.
SDKException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||