Class CaseDataUpdateException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.aquima.interactions.foundation.exception.AppException
-
- com.aquima.interactions.process.exception.ProcessException
-
- com.aquima.interactions.process.exception.CaseDataUpdateException
-
- All Implemented Interfaces:
Serializable
public class CaseDataUpdateException extends ProcessException
This exception is used when case data can not be updated.- Since:
- 7.1
- Author:
- O. Kerpershoek
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CaseDataUpdateException(IProcessCase processCase, AppException error)
Constructs the exception with the required arguments.CaseDataUpdateException(IProcessCase processCase, String errorMessage)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCaseId()
This method returns the ID of the case for which the data update failed.String
getCaseName()
This method returns the name of the case for which the data update failed.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CaseDataUpdateException
public CaseDataUpdateException(IProcessCase processCase, String errorMessage)
Creates a new instance.- Parameters:
processCase
- the case whose data could not be updatederrorMessage
- the error message
-
CaseDataUpdateException
public CaseDataUpdateException(IProcessCase processCase, AppException error)
Constructs the exception with the required arguments.- Parameters:
processCase
- The case whose data was to be updated.error
- The actual cause of the error.
-
-
Method Detail
-
getCaseId
public long getCaseId()
This method returns the ID of the case for which the data update failed.- Returns:
- the ID of the case for which the data update failed.
-
getCaseName
public String getCaseName()
This method returns the name of the case for which the data update failed.- Returns:
- the name of the case for which the data update failed.
-
-