Class HiroMessage

    • Field Detail

    • Constructor Detail

      • HiroMessage

        public HiroMessage()
        Default constructor for Jackson
      • HiroMessage

        public HiroMessage​(java.util.Map<java.lang.String,​java.lang.Object> initialData)
        Constructor
        Parameters:
        initialData - Initial data for the fieldsMap.
    • Method Detail

      • catchError

        protected boolean catchError​(java.lang.String key,
                                     java.lang.Object value)
        If the key is "error", create hiroError from the value.
        Parameters:
        key - The name of the field.
        value - The value of the field.
        Returns:
        true if an error was found (key is "error"), false otherwise.
      • isError

        public boolean isError()
        Checks for a received error.
        Returns:
        true or false
      • getError

        public HiroError getError()
        Gets the received error in the response.
        Returns:
        The HiroErrorResponse or null if no error is present.