Class TdbMessageProvider

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.Integer> codeList()
      Retrieve the list of available error codes, if any
      int getLastCode()
      Retrieve the most recent error code
      java.lang.String getLastMessage()
      Retrieve the most recent error message
      boolean hasMessages()
      Check if the message provider has any messages
      java.util.List<java.lang.String> messageList()
      Retrieve the list of available messages, if any
      void resetMessages()
      Clear any existing state from the message provider
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • messageList

        public java.util.List<java.lang.String> messageList()
        Retrieve the list of available messages, if any
        Returns:
        A collection of messages, could be empty
      • codeList

        public java.util.List<java.lang.Integer> codeList()
        Retrieve the list of available error codes, if any
        Returns:
        A collection of error codes, could be empty
      • getLastCode

        public int getLastCode()
        Retrieve the most recent error code
        Returns:
        The most recent error code
      • getLastMessage

        public java.lang.String getLastMessage()
        Retrieve the most recent error message
        Returns:
        The most recent error message
      • hasMessages

        public boolean hasMessages()
        Check if the message provider has any messages
        Returns:
        true if the provider is in receipt of messages
      • resetMessages

        public void resetMessages()
        Clear any existing state from the message provider