Class LicenceViolationException

  • All Implemented Interfaces:
    Serializable

    public class LicenceViolationException
    extends AbortServiceException
    This exception indicates, that a licence violation occurred when trying to start a service checking the licence. The code allows to identify the cause for the licence violation.
    Author:
    Ulrich Kreher
    See Also:
    Serialized Form
    • Field Detail

      • code

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

      • LicenceViolationException

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

        public LicenceViolationException​(String message,
                                         int code)
        Creates a new LicenceViolationException 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 LicenceViolationException.
    • Method Detail

      • getCode

        public int getCode()
        Gets the code providing information on the cause for this LicenceViolationException.
        Returns:
        The code providing information on the cause for this LicenceViolationException.