Class InvalidLicenceException

  • All Implemented Interfaces:
    Serializable

    public class InvalidLicenceException
    extends Exception
    This exception indicates, that a licence file is invalid (or not present at all). The code allows to identify the cause for this licence exception.
    Author:
    Ulrich Kreher
    See Also:
    Serialized Form
    • Field Detail

      • code

        protected final int code
        The internal code that caused this InvalidLicenceException.
    • Constructor Detail

      • InvalidLicenceException

        public InvalidLicenceException​(int code)
        Creates a new InvalidLicenceException caused by the designated code.
        Parameters:
        code - The code providing information on the cause for this InvalidLicenceException.
      • InvalidLicenceException

        public InvalidLicenceException​(String message,
                                       int code)
        Creates a new InvalidLicenceException caused by the designated code having the designated additional method.
        Parameters:
        message - A message providing additional user information (without any detailed information on the cause).
        code - The code providing information on the cause for this InvalidLicenceException.
      • InvalidLicenceException

        public InvalidLicenceException​(String message)
        Creates a new InvalidLicenceException with the designated message.
        Parameters:
        message - A message providing information on the cause of the invalid licence.
    • Method Detail

      • getCode

        public int getCode()
        Gets the code providing information on the cause for this InvalidLicenceException or 0 in case the code is not set.
        Returns:
        The code providing information on the cause for this InvalidLicenceException.