Class ErrorResponse


  • public class ErrorResponse
    extends Object
    wrapped response in case of errors
    • Constructor Detail

      • ErrorResponse

        public ErrorResponse()
      • ErrorResponse

        public ErrorResponse​(String errorMessage)
      • ErrorResponse

        public ErrorResponse​(Integer status,
                             String message)
    • Method Detail

      • addField

        public ErrorResponse addField​(String path,
                                      String message)
        check if path already exists, add message to list or create new one
      • hasField

        public boolean hasField​(String path)
        check if ErrorResponse has field info
      • getFirstFieldValue

        public String getFirstFieldValue​(String path)
        check within fields and get first value
        return null when not found or empty