Class NoSuchAuthorityCodeException

    • Constructor Detail

      • NoSuchAuthorityCodeException

        public NoSuchAuthorityCodeException​(String message,
                                            String authority,
                                            String code)
        Constructs an exception with the specified detail message and authority code.
        Parameters:
        message - the detail message, saved for later retrieval by the Throwable.getMessage() method.
        authority - the authority, saved for retrieval by the getAuthority() method.
        code - the invalid authority code, saved for retrieval by the getAuthorityCode() method.
      • NoSuchAuthorityCodeException

        public NoSuchAuthorityCodeException​(String message,
                                            String authority,
                                            String code,
                                            String identifier)
        Constructs an exception with the specified detail message, authority code and identifier. The identifier argument is optional. If omitted, then "authority:code" will be used.
        Parameters:
        message - the detail message, saved for later retrieval by the Throwable.getMessage() method.
        authority - the authority, saved for retrieval by the getAuthority() method.
        code - the invalid authority code, saved for retrieval by the getAuthorityCode() method.
        identifier - the full identifier as a concatenation of the authority and the code, saved for retrieval by the NoSuchIdentifierException.getIdentifierCode() method.
    • Method Detail

      • getAuthority

        public String getAuthority()
        Returns the authority.
        Returns:
        the authority, or null if unknown.
      • getAuthorityCode

        public String getAuthorityCode()
        Returns the invalid authority code.
        Returns:
        the authority code, or null if unknown.