Page 1 of 1

UserException vs BgaUserException

Posted: 20 January 2026, 20:45
by houseofsuns
Hi,

I wanted to upgrade some legacy code (which uses feException) to use the up to date exception variant. However I'm unsure whether to use UserException or BgaUserException. I tried to find an answer in the wiki or forum, but was not successful. Can someone shine some light on the difference?

Re: UserException vs BgaUserException

Posted: 20 January 2026, 20:58
by thoun
UserException is the new one, namespaced, and can handle a NotificationMessage if you want to send parameterised messages.
BgaUserException is the old one that was here before, use UserException.

Re: UserException vs BgaUserException

Posted: 20 January 2026, 21:46
by houseofsuns
Thanks for the quick reply. Will do.

Re: UserException vs BgaUserException

Posted: 20 January 2026, 22:39
by nalka
Shouldn't BgaUserException be deprecated then?

Re: UserException vs BgaUserException

Posted: 21 January 2026, 08:09
by thoun
Yes it should, but some devs think we're changing too much too fast, so I haven't marked it yet to let them time to learn the other changes that are more important. But everything that is not in a namespace will be deprecated one day.