Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-3017

[Wicket Viewer] WebRequestCycleForIsis does not display recognizable error.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Resolved
    • 2.0.0-M7
    • 2.0.0-M8
    • Viewer Wicket
    • None

    Description

      In WebRequestCycleForIsis onException there is a code:

      val exceptionRecognizerService = getExceptionRecognizerService();
      val recognizedIfAny = exceptionRecognizerService.recognize(ex);
      if(recognizedIfAny.isPresent()) {
          return respondGracefully(cycle);
      } 

      So it recognizes the error, but does not display it.

       

      Maybe

       

      val exceptionRecognizerService = getExceptionRecognizerService();
      val recognizedIfAny = exceptionRecognizerService.recognize(ex);
      if(recognizedIfAny.isPresent()) {
          getMessageBroker().ifPresent(broker->{
              String msg = recognizedIfAny.get().toMessage(getCommonContext().getTranslationService());
              if (msg != null) {
                  broker.addMessage(
                          msg);
              }
          });
          return respondGracefully(cycle);
      }
       

      could work well.

      Attachments

        Activity

          People

            hobrom Andi Huber
            gyorfimi Miklós Győrfi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: