|
Primavera Integration API Release 8 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.primavera.PrimaveraException
com.primavera.ServerException
com.primavera.PhoenixException
com.primavera.BatchException
public class BatchException
Exception containing all business rule exceptions that occurred during a batch create or update.
Field Summary | |
---|---|
static int |
UNKNOWN_INDEX
The index could not be determined. |
Constructor Summary | |
---|---|
BatchException(String strMessage)
Class constructor specifying a detailed message. |
|
BatchException(String strMessage,
Throwable thE)
Class constructor specifying a detailed message and the original thrown exception. |
Method Summary | |
---|---|
boolean |
addAll(BatchException src)
Adds all exceptions contained in another BatchException to this BatchException |
static BatchException |
addBatchException(BatchException batchException,
BatchException newException)
Adds all exceptions contained in another BatchException to a BatchException. |
static BatchException |
addBatchException(BatchException batchException,
ServerException newException,
int sourceIndex)
Adds an exception to a BatchException. |
void |
addExceptionToList(ServerException newException,
int sourceIndex)
Adds an exception to the list of exceptions |
List<ServerException> |
getExceptionList()
Gets the list of exceptions contained in this batch exception |
Map<Integer,List<Exception>> |
getExceptionsByIndex()
Gets the exceptions contained in this batch exception as a sorted map, where the key is the index in the batch, and the value is a list of exceptions for that index. |
Object |
getSource()
Gets the source for the first exception in the exception list. |
Methods inherited from class com.primavera.ServerException |
---|
setSource |
Methods inherited from class com.primavera.PrimaveraException |
---|
getOriginalException, getStackTrace, isSQLExceptionThrown, printStackTrace, printStackTrace, printStackTrace, removeOriginalException |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int UNKNOWN_INDEX
Constructor Detail |
---|
public BatchException(String strMessage, Throwable thE)
strMessage
- the detailed message of this exceptionthE
- the originally thrown exceptionpublic BatchException(String strMessage)
strMessage
- the message of this exceptionMethod Detail |
---|
public static BatchException addBatchException(BatchException batchException, ServerException newException, int sourceIndex)
batchException
- the batch exception to received the added exception. This parameter may be null.newException
- the exception to add.sourceIndex
- the index in the batch for which the exception occurred
public static BatchException addBatchException(BatchException batchException, BatchException newException)
batchException
- the batch exception to receive the added exception. This parameter may be null.newException
- the exception to add.
public boolean addAll(BatchException src)
src
- the batch exception containing the exceptions to add
public void addExceptionToList(ServerException newException, int sourceIndex)
newException
- the exception to addsourceIndex
- the index in the batch for which the exception occurredpublic Map<Integer,List<Exception>> getExceptionsByIndex()
public List<ServerException> getExceptionList()
public Object getSource()
getSource
in class ServerException
|
Primavera Integration API Release 8 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |