Class ErrorDetail


  • public final class ErrorDetail
    extends Object
    Error Detail class which encapsulates Code, Message and Recommendations.
    • Constructor Detail

      • ErrorDetail

        public ErrorDetail()
    • Method Detail

      • code

        public String code()
        Get the code property: Error code.
        Returns:
        the code value.
      • message

        public String message()
        Get the message property: Error Message related to the Code.
        Returns:
        the message value.
      • recommendations

        public List<String> recommendations()
        Get the recommendations property: List of recommendation strings.
        Returns:
        the recommendations value.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.