Class LicenseValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
dev.demeng.sentinel.client.exception.SentinelException
dev.demeng.sentinel.client.exception.LicenseValidationException
- All Implemented Interfaces:
Serializable
Thrown by
ValidationResult.requireValid()
when the license validation result indicates failure.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLicenseValidationException(ValidationResultType type, String message) Creates a new license validation exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LicenseValidationException
Creates a new license validation exception.- Parameters:
type- the validation failure typemessage- the failure message from the API
-
-
Method Details
-
getType
Returns the validation failure type.- Returns:
- the failure type
-