Class NoSuchAuthorityCodeException

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String authority
      The authority.
      private java.lang.String code
      The invalid authority code.
      private static long serialVersionUID
      Serial number for inter-operability with different versions.
    • Constructor Summary

      Constructors 
      Constructor Description
      NoSuchAuthorityCodeException​(java.lang.String message, java.lang.String authority, java.lang.String code)
      Constructs an exception with the specified detail message and authority code.
      NoSuchAuthorityCodeException​(java.lang.String message, java.lang.String authority, java.lang.String code, java.lang.String identifier)
      Constructs an exception with the specified detail message, authority code and identifier.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAuthority()
      Returns the authority.
      java.lang.String getAuthorityCode()
      Returns the invalid authority code.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Serial number for inter-operability with different versions.
        See Also:
        Constant Field Values
      • authority

        private final java.lang.String authority
        The authority.
      • code

        private final java.lang.String code
        The invalid authority code.
    • Constructor Detail

      • NoSuchAuthorityCodeException

        public NoSuchAuthorityCodeException​(java.lang.String message,
                                            java.lang.String authority,
                                            java.lang.String code)
        Constructs an exception with the specified detail message and authority code.
        Parameters:
        message - The detail message. The detail message is 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​(java.lang.String message,
                                            java.lang.String authority,
                                            java.lang.String code,
                                            java.lang.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. The detail message is 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 java.lang.String getAuthority()
        Returns the authority.
        Returns:
        The authority, or null if unknown.
      • getAuthorityCode

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