Class ErrorEntity


  • public class ErrorEntity
    extends Object
    Body of the error response returned from the API.
    • Constructor Detail

      • ErrorEntity

        public ErrorEntity()
    • Method Detail

      • extendedCode

        public String extendedCode()
        Get type of error.
        Returns:
        the extendedCode value
      • withExtendedCode

        public ErrorEntity withExtendedCode​(String extendedCode)
        Set type of error.
        Parameters:
        extendedCode - the extendedCode value to set
        Returns:
        the ErrorEntity object itself.
      • messageTemplate

        public String messageTemplate()
        Get message template.
        Returns:
        the messageTemplate value
      • withMessageTemplate

        public ErrorEntity withMessageTemplate​(String messageTemplate)
        Set message template.
        Parameters:
        messageTemplate - the messageTemplate value to set
        Returns:
        the ErrorEntity object itself.
      • parameters

        public List<String> parameters()
        Get parameters for the template.
        Returns:
        the parameters value
      • withParameters

        public ErrorEntity withParameters​(List<String> parameters)
        Set parameters for the template.
        Parameters:
        parameters - the parameters value to set
        Returns:
        the ErrorEntity object itself.
      • innerErrors

        public List<ErrorEntity> innerErrors()
        Get inner errors.
        Returns:
        the innerErrors value
      • withInnerErrors

        public ErrorEntity withInnerErrors​(List<ErrorEntity> innerErrors)
        Set inner errors.
        Parameters:
        innerErrors - the innerErrors value to set
        Returns:
        the ErrorEntity object itself.
      • code

        public String code()
        Get basic error code.
        Returns:
        the code value
      • withCode

        public ErrorEntity withCode​(String code)
        Set basic error code.
        Parameters:
        code - the code value to set
        Returns:
        the ErrorEntity object itself.
      • message

        public String message()
        Get any details of the error.
        Returns:
        the message value
      • withMessage

        public ErrorEntity withMessage​(String message)
        Set any details of the error.
        Parameters:
        message - the message value to set
        Returns:
        the ErrorEntity object itself.