UserException vs BgaUserException

Game development with Board Game Arena Studio
Post Reply
User avatar
houseofsuns
Posts: 27
Joined: 02 April 2021, 22:05

UserException vs BgaUserException

Post 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?
User avatar
thoun
Posts: 1620
Joined: 10 December 2020, 22:25

Re: UserException vs BgaUserException

Post 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.
User avatar
houseofsuns
Posts: 27
Joined: 02 April 2021, 22:05

Re: UserException vs BgaUserException

Post by houseofsuns »

Thanks for the quick reply. Will do.
User avatar
nalka
Posts: 26
Joined: 11 June 2016, 01:53

Re: UserException vs BgaUserException

Post by nalka »

Shouldn't BgaUserException be deprecated then?
User avatar
thoun
Posts: 1620
Joined: 10 December 2020, 22:25

Re: UserException vs BgaUserException

Post 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.
Post Reply

Return to “Developers”