Class InnerError


  • public final class InnerError
    extends Object
    InnerError Inner Error.
    • Constructor Detail

      • InnerError

        public InnerError()
    • Method Detail

      • additionalInfo

        public Map<String,​String> additionalInfo()
        Get the additionalInfo property: Any Key value pairs that can be provided to the client for additional verbose information.
        Returns:
        the additionalInfo value.
      • withAdditionalInfo

        public InnerError withAdditionalInfo​(Map<String,​String> additionalInfo)
        Set the additionalInfo property: Any Key value pairs that can be provided to the client for additional verbose information.
        Parameters:
        additionalInfo - the additionalInfo value to set.
        Returns:
        the InnerError object itself.
      • code

        public String code()
        Get the code property: Unique code for this error.
        Returns:
        the code value.
      • withCode

        public InnerError withCode​(String code)
        Set the code property: Unique code for this error.
        Parameters:
        code - the code value to set.
        Returns:
        the InnerError object itself.
      • embeddedInnerError

        public InnerError embeddedInnerError()
        Get the embeddedInnerError property: InnerError Child Inner Error, to allow Nesting.
        Returns:
        the embeddedInnerError value.
      • withEmbeddedInnerError

        public InnerError withEmbeddedInnerError​(InnerError embeddedInnerError)
        Set the embeddedInnerError property: InnerError Child Inner Error, to allow Nesting.
        Parameters:
        embeddedInnerError - the embeddedInnerError value to set.
        Returns:
        the InnerError object itself.
      • validate

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