rat-pac / ratpac-two

Open source edition of RAT-PAC
Other
11 stars 25 forks source link

DBLinkPtr should not use exceptions for known optional parameters #75

Open MorganAskins opened 1 year ago

MorganAskins commented 1 year ago

DBLinkPtr::Get functions should have an overload with the option for a default value so that optional parameters (which is intended) are not an "error". There is no point in throwing and catching an error that we know and intend to throw and catch every time.

Optional overloaded versions of the function would be like:

DBLinkPtr::Get("some_db_value", "default");