BatchException

public class BatchException extends Exception

Custom exception for the batch module.

Author:naveen

Constructors

BatchException

public BatchException(BatchErrors batchErrors)
Parameters:
  • batchErrors – the error that caused the exception

BatchException

public BatchException(BatchErrors batchErrors, String reason)
Parameters:
  • batchErrors – the error that caused the exception
  • reason – reason for the error

BatchException

public BatchException(BatchErrors batchErrors, Throwable throwable)
Parameters:
  • batchErrors – the error that caused the exception
  • throwable – the underlying exception

BatchException

public BatchException(BatchErrors batchErrors, Throwable throwable, String reason)
Parameters:
  • batchErrors – the error that caused the exception
  • throwable – the underlying exception
  • reason – the reason for this error

Methods

getError

public BatchErrors getError()
Returns:the underlying error

getErrorCode

public int getErrorCode()

Return the error code for the underlying error.

Returns:the error code

getErrorMessage

public String getErrorMessage()

Returns a short description of the error.

Returns:the message representing this error

getErrorMessageDetails

public String getErrorMessageDetails()
Returns:the stacktrace for this exception as a string

getReason

public String getReason()
Returns:the reason of this error

setReason

public void setReason(String reason)
Parameters:
  • reason – the reason of this error