Class LicenseRefusedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.dna.jopt.framework.exception.caught.InvalidLicenceException
com.dna.jopt.framework.exception.caught.LicenseRefusedException
- All Implemented Interfaces:
Serializable
An
InvalidLicenceException for a run that the license check refused at its start: either
the license itself (for example a license of the old scheme, a broken signature or a due date in
the past) or the run under the license (for example more elements than the license allows). The
message begins with the name of the cause, followed by a colon and the message of the cause.
A refused run streams one error event with ErrorCode.LICENSE_REFUSED whose cause is
this exception, and the future of the run completes exceptionally with it.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLicenseRefusedException(com.dna.jopt.framework.lic.signed.SignedLicenseRefusalCause refusalCause, String message) Creates the exception. -
Method Summary
Modifier and TypeMethodDescriptioncom.dna.jopt.framework.lic.signed.SignedLicenseRefusalCauseGets the cause of the refusal.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LicenseRefusedException
public LicenseRefusedException(com.dna.jopt.framework.lic.signed.SignedLicenseRefusalCause refusalCause, String message) Creates the exception.- Parameters:
refusalCause- the cause of the refusalmessage- the message; it begins with the name of the cause
-
-
Method Details
-
getRefusalCause
public com.dna.jopt.framework.lic.signed.SignedLicenseRefusalCause getRefusalCause()Gets the cause of the refusal.- Returns:
- the cause of the refusal
-