Package africa.absa.inception.error
Class ErrorReport
java.lang.Object
africa.absa.inception.error.ErrorReport
- All Implemented Interfaces:
Serializable
The ErrorReport class holds the information for an error report.
- Author:
- Marcus Portmann
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe maximum size of the error report detail. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new ErrorReport.ErrorReport(UUID id, String applicationId, String applicationVersion, String description, String detail, LocalDateTime created) Constructs a new ErrorReport.ErrorReport(UUID id, String applicationId, String applicationVersion, String description, String detail, LocalDateTime created, String who, UUID deviceId, String feedback, String data) Constructs a new ErrorReport. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.Returns the ID for the application that generated the error report.Returns the version of the application that generated the error report.Returns the date and time the error report was created.getData()Returns the optional base-64 encoded data associated with the error report.Returns the description of the error.Returns the error detail.Returns the optional ID for the device the error report originated from.Returns the optional feedback provided by the user for the error.getId()Returns the ID for the error report.getWho()Returns the username for the user associated with the error report.inthashCode()Returns a hash code value for the object.voidsetApplicationId(String applicationId) Set the ID for the application that generated the error report.voidsetApplicationVersion(String applicationVersion) Set the version of the application that generated the error report.voidsetCreated(LocalDateTime created) Set the date and time the error report was created.voidSet the base-64 encoded data associated with the error report.voidsetDescription(String description) Set the description of the error.voidSet the error detail.voidsetDeviceId(UUID deviceId) Set the ID for the device the error report originated from.voidsetFeedback(String feedback) Set the feedback provided by the user for the error.voidSet the ID for the error report.voidSet the username for the user associated with the error report.
-
Field Details
-
MAX_DETAIL_SIZE
public static final int MAX_DETAIL_SIZEThe maximum size of the error report detail.- See Also:
-
-
Constructor Details
-
ErrorReport
public ErrorReport()Constructs a new ErrorReport. -
ErrorReport
public ErrorReport(UUID id, String applicationId, String applicationVersion, String description, String detail, LocalDateTime created) Constructs a new ErrorReport.- Parameters:
id- the ID for the error reportapplicationId- the ID for the application that generated the error reportapplicationVersion- the version of the application that generated the error reportdescription- the description of the errordetail- the error detailcreated- the date and time the error report was created
-
ErrorReport
public ErrorReport(UUID id, String applicationId, String applicationVersion, String description, String detail, LocalDateTime created, String who, UUID deviceId, String feedback, String data) Constructs a new ErrorReport.- Parameters:
id- the ID for the error reportapplicationId- the ID for the application that generated the error reportapplicationVersion- the version of the application that generated the error reportdescription- the description of the errordetail- the error detailcreated- the date and time the error report was createdwho- the optional username for the user associated with the error reportdeviceId- the optional ID for the device the error report originated fromfeedback- the optional feedback provided by the user for the errordata- the optional base-64 encoded data associated with the error report
-
-
Method Details
-
equals
Indicates whether some other object is "equal to" this one. -
getApplicationId
Returns the ID for the application that generated the error report.- Returns:
- the ID for the application that generated the error report
-
getApplicationVersion
Returns the version of the application that generated the error report.- Returns:
- the version of the application that generated the error report
-
getCreated
Returns the date and time the error report was created.- Returns:
- the date and time the error report was created
-
getData
Returns the optional base-64 encoded data associated with the error report.- Returns:
- the optional base-64 encoded data associated with the error report
-
getDescription
Returns the description of the error.- Returns:
- the description of the error
-
getDetail
Returns the error detail.- Returns:
- the error detail
-
getDeviceId
Returns the optional ID for the device the error report originated from.- Returns:
- the optional ID for the device the error report originated from
-
getFeedback
Returns the optional feedback provided by the user for the error.- Returns:
- the optional feedback provided by the user for the error
-
getId
Returns the ID for the error report.- Returns:
- the ID for the error report
-
getWho
Returns the username for the user associated with the error report.- Returns:
- the username for the user associated with the error report
-
hashCode
public int hashCode()Returns a hash code value for the object. -
setApplicationId
Set the ID for the application that generated the error report.- Parameters:
applicationId- the ID for the application that generated the error report
-
setApplicationVersion
Set the version of the application that generated the error report.- Parameters:
applicationVersion- the version of the application that generated the error report
-
setCreated
Set the date and time the error report was created.- Parameters:
created- the date and time the error report was created
-
setData
Set the base-64 encoded data associated with the error report.- Parameters:
data- the base-64 encoded data associated with the error report
-
setDescription
Set the description of the error.- Parameters:
description- the description of the error
-
setDetail
Set the error detail.- Parameters:
detail- the error detail
-
setDeviceId
Set the ID for the device the error report originated from.- Parameters:
deviceId- the ID for the device the error report originated from
-
setFeedback
Set the feedback provided by the user for the error.- Parameters:
feedback- the feedback provided by the user for the error
-
setId
Set the ID for the error report.- Parameters:
id- the ID for the error report
-
setWho
Set the username for the user associated with the error report.- Parameters:
who- the username for the user associated with the error report
-