Class SRUDiagnostic

    • Constructor Detail

      • SRUDiagnostic

        public SRUDiagnostic​(String uri,
                             String details,
                             String message)
        Constructor.
        Parameters:
        uri - the diagnostic's identifying URI
        details - supplementary information available, often in a format specified by the diagnostic or null
        message - human readable message to display to the end user or null
        Throws:
        NullPointerException - if uri is null
        IllegalArgumentException - if uri is empty string
      • SRUDiagnostic

        public SRUDiagnostic​(String uri,
                             String details)
        Constructor.
        Parameters:
        uri - the diagnostic's identifying URI
        details - supplementary information available, often in a format specified by the diagnostic or null
      • SRUDiagnostic

        public SRUDiagnostic​(String uri)
        Constructor.
        Parameters:
        uri - the diagnostic's identifying URI
    • Method Detail

      • getURI

        public String getURI()
        Get code for this diagnostic.
        Returns:
        diagnostic code
        See Also:
        SRUConstants
      • getDetails

        public String getDetails()
        Get supplementary information for this diagnostic. The format for this value is often specified by the diagnostic code.
        Returns:
        supplementary information
      • getMessage

        public String getMessage()
        Get human readable message.
        Returns:
        human readable message