Java Exception Handling

In case of errors, LicenseSpring SDK will throw an exception. SDK-specific exceptions always derive from the LicenseSpringException class.

The following exceptions are possible:

  • LicenseSpringException - All SDK exceptions are wrapped in this exception.

  • LicenseExpiredException - License expired.

  • ConsumptionException - When feature/license consumption limits have been reached.

  • LicenseSpringServerException - Any license server error is wrapped in this exception. See docs/errors-and-response-codesarrow-up-right for detailed messages. The response is wrapped in the ErrorResponse class.

Was this helpful?