Class InvalidLicenceException

java.lang.Object
java.lang.Throwable
java.lang.Exception
de.aristaflow.adept2.base.licensing.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:
  • Field Details

    • code

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

    • 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 Details

    • 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.