Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-5459

Allow Configuration.invokeWebAppInits() to throw a runtime Error

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Normal Normal
    • 10.0.0
    • 9.6.3
    • None
    • Security Level: Jimmy

      User Story


      As an app developer, I want to throw a runtime error in my custom WebAppInit listener because of a critical error to stop the whole application.

      use case

      In a custom WebAppInit, it connects to a database. If that connection fails, the web application won't run correctly and produce random errors. Throwing a runtime error in WebAppInit can make the application fail fast and make users/developers notice the real root cause.

      Acceptance Criteria

      don't catch Throwable, let a runtime error go to upper layer.

      Details

      • invokeSessionInits(), invokeDesktopInits(), invokeExecutionInits() all throw exceptions.

            rebeccalai rebeccalai
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: