|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
wt.util.WTException
wt.sandbox.SandboxException
wt.sandbox.SandboxValidationException
General exception to denote one or more error conditions discovered in
the process of validating a sandbox operation.
Supported API: false
Extendable: false
Fields inherited from class wt.util.WTException |
GETMESSAGE_LINE_SEPARATOR, LINE_SEPARATOR, SPACE_SEPARATOR, TOSTRING_LINE_SEPARATOR |
Fields inherited from class java.lang.Exception |
|
Fields inherited from class java.lang.Throwable |
|
Constructor Summary | |
|
SandboxValidationException()
|
private |
SandboxValidationException(Throwable t,
String errorCode,
Object[] additionalMessages,
Map additionalErrorsToCausalObjectsMap,
WTKeyedMap causalObjectToIdentityMap,
Map additionalErrorsToErrorMessagesMap)
|
Method Summary | |
private static Object[] |
getAdditionalMessages(Map additionalErrorsToCausalObjectsMap,
WTKeyedMap causalObjectToIdentityMap,
Map additionalErrorsToErrorMessagesMap)
Compute appropriate "additional" messages for display from overall set of errors and objects. |
DisplayIdentity[] |
getCausalIdentitiesForPartialErrorCode(String partialErrorCode)
Get display identities of objects causing a given partial error code. |
WTSet |
getCausalObjects()
Return set of all objects which caused the errors. |
WTCollection |
getCausalObjectsForPartialErrorCode(String partialErrorCode)
Returns collection of objects causing a given partial error. |
String |
getErrorCode()
Returns the overall error code. |
WTMessage |
getMessageForPartialErrorCode(String partialErrorCode)
Returns error message for a given partial error code. |
String[] |
getPartialErrorCodes()
Returns partial error codes, i.e. |
boolean |
hasMultipleErrors()
Returns true if and only if this exception contains multiple errors. |
(package private) static SandboxValidationException |
newSandboxValidationException(Map exceptionCodesToCausalObjects)
|
(package private) static SandboxValidationException |
newSandboxValidationException(String errorCode,
WTCollection causalObjects)
|
private static SandboxValidationException |
newSandboxValidationException(Throwable t,
Map exceptionCodesToCausalObjects)
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String MULTIPLE_CAUSES
public static final String CANNOT_SB_CHECKOUT_NON_LATEST_ITERATIONS
public static final String USER_HAS_NO_MODIFY_PRIVILEGES
public static final String CANNOT_CHECK_OUT_WIP_CHECKEDOUT_OBJECT
public static final String CANNOT_SB_CHECK_OUT_PERSONAL_CABINET_ENTRY
public static final String SANDBOX_VERSION_ALREADY_CHECKED_OUT
public static final String OBJECT_CHECKED_OUT_TO_ANOTHER_SANDBOX
public static final String CANNOT_CHECK_OUT_LOCKED_OBJECTS
public static final String OTHER_VERSION_CHECKED_OUT_TO_SANDBOX
public static final String CANNOT_UNDO_SB_CHECKOUT_INVALID_DATA_STATE
public static final String CANNOT_UNDO_SB_CHECKOUT_NON_LATEST_ITERATIONS
public static final String CANNOT_UNDO_SB_CHECKOUT_WHILE_WIP
public static final String CANNOT_UNDO_SB_CHECKOUT_NOT_CHECKED_OUT
public static final String USER_CANNOT_UNLOCK_OBJECTS
public static final String CANNOT_SB_CHECKIN_WITH_NON_LATEST_ITERATIONS
public static final String CANNOT_SB_CHECKIN_WHILE_WIP_CHECKED_OUT
public static final String CANNOT_SB_CHECKIN_TERMINAL_OBJ
public static final String CANNOT_SB_CHECKIN_OBJ_NOT_IN_PROJECT
public static final String CANNOT_SB_CHECKIN_OBJ_NOT_CHECKED_OUT
public static final String CANNOT_SB_CHECKIN_WITHOUT_INITIAL_CHECKIN_DATA
public static final String CANNOT_DELETE_CONTAINER_WITH_WORKING_COPIES
public static final String CANNOT_DELETE_SANDBOX_WORKING_COPY
public static final String MULTI_VERSION_SB_CHECKOUT
private String errorCode
private boolean hasMultipleErrors
private WTKeyedMap causalObjectToIdentityMap
private Map additionalErrorsToCausalObjectsMap
private Map additionalErrorsToErrorMessagesMap
Constructor Detail |
public SandboxValidationException()
private SandboxValidationException(Throwable t, String errorCode, Object[] additionalMessages, Map additionalErrorsToCausalObjectsMap, WTKeyedMap causalObjectToIdentityMap, Map additionalErrorsToErrorMessagesMap)
Method Detail |
public String getErrorCode()
public WTSet getCausalObjects()
public boolean hasMultipleErrors()
public String[] getPartialErrorCodes()
public WTCollection getCausalObjectsForPartialErrorCode(String partialErrorCode)
partialErrorCode
- partial error code
public WTMessage getMessageForPartialErrorCode(String partialErrorCode)
partialErrorCode
- partial error code
public DisplayIdentity[] getCausalIdentitiesForPartialErrorCode(String partialErrorCode)
partialErrorCode
- partial error code
static SandboxValidationException newSandboxValidationException(String errorCode, WTCollection causalObjects) throws WTException
WTException
static SandboxValidationException newSandboxValidationException(Map exceptionCodesToCausalObjects) throws WTException
WTException
private static SandboxValidationException newSandboxValidationException(Throwable t, Map exceptionCodesToCausalObjects) throws WTException
WTException
private static Object[] getAdditionalMessages(Map additionalErrorsToCausalObjectsMap, WTKeyedMap causalObjectToIdentityMap, Map additionalErrorsToErrorMessagesMap)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |