Config Editor on Error

9 views
Skip to first unread message

Stuart Douglas

unread,
Jul 29, 2021, 5:44:11 AM7/29/21
to Quarkus Development mailing list
Hi Everyone,

We now have the ability to fix config errors from the error page:

config-editor2.png


Common problems (such as values not being able to be converted to the correct type) are handled automatically, but extensions can also contribute to this by throwing an Exception at deployment time that implement io.quarkus.dev.config.ConfigurationProblem, and providing the set of config keys that are the problem (exception wrapping is not a problem, all causes are taken into account).

If you are throwing an exception in an extension due to invalid config please try to use this to enable the user to quickly fix it from the browser error page. io.quarkus.runtime.configuration.ConfigurationException has support for this built in, so you don't need a new exception type.

Stuart


Stephane Epardaud

unread,
Jul 29, 2021, 5:48:20 AM7/29/21
to Stuart Douglas, Quarkus Development mailing list
Awesome!

--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAD%2BL2cxvFnwts0VLTE-FLPCfCGwmp6_2oZJpE77hC6WeMOos%3DA%40mail.gmail.com.


--
Stéphane Épardaud

Georgios Andrianakis

unread,
Jul 29, 2021, 5:59:38 AM7/29/21
to Stephane Epardaud, Stuart Douglas, Quarkus Development mailing list

Michał Szynkiewicz

unread,
Jul 29, 2021, 6:16:09 AM7/29/21
to Georgios Andrianakis, Stephane Epardaud, Stuart Douglas, Quarkus Development mailing list
That's really nice indeed :)

We can replace the exception class with something from SmallRye that could be thrown by our MP implementations, right?

Stuart Douglas

unread,
Jul 29, 2021, 6:27:24 AM7/29/21
to Michał Szynkiewicz, Georgios Andrianakis, Stephane Epardaud, Quarkus Development mailing list
Sure, adding a similar interface or exception class to smallrye would be simple.

Stuart

Daniel Oh

unread,
Jul 29, 2021, 7:18:40 AM7/29/21
to Stuart Douglas, Quarkus Development mailing list
Awesome!!! It will very helpful for troubleshooting!

--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAD%2BL2cxvFnwts0VLTE-FLPCfCGwmp6_2oZJpE77hC6WeMOos%3DA%40mail.gmail.com.


--

Daniel oh

Senior PRINCIPAL TECHNICAL MARKETING MANAGER

agile & devops COMMUNITY OF PRACTICE manager

Red Hat Inc

d...@redhat.com    M: +1-(617)717.8732     @danieloh30

Michał Szynkiewicz

unread,
Jul 29, 2021, 7:48:15 AM7/29/21
to Stuart Douglas, Georgios Andrianakis, Stephane Epardaud, Quarkus Development mailing list
Cool! 

Antonio Goncalves

unread,
Jul 29, 2021, 12:12:22 PM7/29/21
to Quarkus Development mailing list
Nice !!!! Is this feature available only in dev mode or also in production ?



--
Antonio Goncalves 
Contractor, Java Champion and Pluralsight author

Blog | Twitter | LinkedIn Author Pluralsight | Devoxx France | Voxxed Microservices

Georgios Andrianakis

unread,
Jul 29, 2021, 12:23:10 PM7/29/21
to Antonio Goncalves, Quarkus Development mailing list


On Thu, Jul 29, 2021, 19:12 Antonio Goncalves <antonio....@gmail.com> wrote:
Nice !!!! Is this feature available only in dev mode or also in production ?

You know the answer to that 😉

Antonio Goncalves

unread,
Jul 30, 2021, 3:05:31 AM7/30/21
to Georgios Andrianakis, Quarkus Development mailing list
Yes, I wanted to trick you. I was expecting a "yes", and then I would have started a new thread entitled "Why not having Dev UI in prod if we have Config Editor" 😂😂😂

Georgios Andrianakis

unread,
Jul 30, 2021, 3:11:17 AM7/30/21
to Antonio Goncalves, Quarkus Development mailing list
😈
Reply all
Reply to author
Forward
0 new messages