Class InvalidNameException

    • Constructor Detail

      • InvalidNameException

        public InvalidNameException​(String invalidName,
                                    String reason)
        Creates the failure; the name and reason are folded into the message.
        Parameters:
        invalidName - the name that was rejected
        reason - why it was rejected
    • Method Detail

      • getInvalidName

        public String getInvalidName()
        Returns:
        the invalid name
      • getReason

        public String getReason()
        Returns:
        the reason