Class ErrorReport

java.lang.Object
africa.absa.inception.error.ErrorReport
All Implemented Interfaces:
Serializable

@Entity public class ErrorReport extends Object implements Serializable
The ErrorReport class holds the information for an error report.
Author:
Marcus Portmann
See Also:
  • Field Details

    • MAX_DETAIL_SIZE

      public static final int MAX_DETAIL_SIZE
      The 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 report
      applicationId - the ID for the application that generated the error report
      applicationVersion - the version of the application that generated the error report
      description - the description of the error
      detail - the error detail
      created - 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 report
      applicationId - the ID for the application that generated the error report
      applicationVersion - the version of the application that generated the error report
      description - the description of the error
      detail - the error detail
      created - the date and time the error report was created
      who - the optional username for the user associated with the error report
      deviceId - the optional ID for the device the error report originated from
      feedback - the optional feedback provided by the user for the error
      data - the optional base-64 encoded data associated with the error report
  • Method Details

    • equals

      public boolean equals(Object object)
      Indicates whether some other object is "equal to" this one.
      Overrides:
      equals in class Object
      Parameters:
      object - the reference object with which to compare
      Returns:
      true if this object is the same as the object argument otherwise false
    • getApplicationId

      public String getApplicationId()
      Returns the ID for the application that generated the error report.
      Returns:
      the ID for the application that generated the error report
    • getApplicationVersion

      public String getApplicationVersion()
      Returns the version of the application that generated the error report.
      Returns:
      the version of the application that generated the error report
    • getCreated

      public LocalDateTime getCreated()
      Returns the date and time the error report was created.
      Returns:
      the date and time the error report was created
    • getData

      public String 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

      public String getDescription()
      Returns the description of the error.
      Returns:
      the description of the error
    • getDetail

      public String getDetail()
      Returns the error detail.
      Returns:
      the error detail
    • getDeviceId

      public UUID 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

      public String getFeedback()
      Returns the optional feedback provided by the user for the error.
      Returns:
      the optional feedback provided by the user for the error
    • getId

      public UUID getId()
      Returns the ID for the error report.
      Returns:
      the ID for the error report
    • getWho

      public String 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.
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for the object
    • setApplicationId

      public void setApplicationId(String applicationId)
      Set the ID for the application that generated the error report.
      Parameters:
      applicationId - the ID for the application that generated the error report
    • setApplicationVersion

      public void setApplicationVersion(String applicationVersion)
      Set the version of the application that generated the error report.
      Parameters:
      applicationVersion - the version of the application that generated the error report
    • setCreated

      public void setCreated(LocalDateTime created)
      Set the date and time the error report was created.
      Parameters:
      created - the date and time the error report was created
    • setData

      public void setData(String data)
      Set the base-64 encoded data associated with the error report.
      Parameters:
      data - the base-64 encoded data associated with the error report
    • setDescription

      public void setDescription(String description)
      Set the description of the error.
      Parameters:
      description - the description of the error
    • setDetail

      public void setDetail(String detail)
      Set the error detail.
      Parameters:
      detail - the error detail
    • setDeviceId

      public void setDeviceId(UUID deviceId)
      Set the ID for the device the error report originated from.
      Parameters:
      deviceId - the ID for the device the error report originated from
    • setFeedback

      public void setFeedback(String feedback)
      Set the feedback provided by the user for the error.
      Parameters:
      feedback - the feedback provided by the user for the error
    • setId

      public void setId(UUID id)
      Set the ID for the error report.
      Parameters:
      id - the ID for the error report
    • setWho

      public void setWho(String who)
      Set the username for the user associated with the error report.
      Parameters:
      who - the username for the user associated with the error report