BatchError

public class BatchError

JSON element for Error when there is an exception in rest call.

Author:naveen

Constructors

BatchError

public BatchError()

Constructs the error, setting the timestamp to now, and the hostname to the one of this instance.

Methods

getApplication

public String getApplication()
Returns:the name of the application that caused the error

getErrorCode

public String getErrorCode()
Returns:the code of this error

getErrorMessage

public String getErrorMessage()
Returns:a short error message

getHostName

public String getHostName()
Returns:the hostname of the server on which this error occurred

getTimeStamp

public Date getTimeStamp()
Returns:the timestamp of this error

setApplication

public void setApplication(String application)
Parameters:
  • application – the name of the application that caused the error

setErrorCode

public void setErrorCode(String errorCode)
Parameters:
  • errorCode – the code of this error

setErrorMessage

public void setErrorMessage(String errorMessage)
Parameters:
  • errorMessage – a short error message

setHostName

public void setHostName(String hostName)
Parameters:
  • hostName – the hostname of the server on which this error occurred

setTimeStamp

public void setTimeStamp(Date timeStamp)
Parameters:
  • timeStamp – the timestamp of this error