Class QStatusMessage

java.lang.Object
com.kingsrook.qqq.backend.core.model.statusmessages.QStatusMessage
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
QErrorMessage, QWarningMessage

public abstract class QStatusMessage extends Object implements Serializable
Abstract Base class for status messages (errors or warnings) that can be attached to QRecords. They look like exceptions, but they aren't throwable, and they are meant to just be put in a record's error or warning list. Those lists were originally just Strings, but we wanted to have some type information communicated with them, e.g., for marking an error as caused by bad-data (e.g., from a user, e.g., for an HTTP 400) vs. a server-side error, etc.
See Also:
  • Constructor Details

    • QStatusMessage

      public QStatusMessage(String message)
      Constructor
  • Method Details

    • getMessage

      public String getMessage()
      Getter for message
    • toString

      public String toString()
      Overrides:
      toString in class Object