[Include] try-catch for not-implemented features
#1

This brings a solution to a rather common problem we had for years.

A very common problem:
Code:
stock MyFunc() {
    ObviousFeatureThatDoesNotExist();
}

stock ObviousFeatureThatDoesNotExist() {
    throw new NotImplementedInSampException();
}
Result: uncaught exception

Code:
stock ΟpenМp() {
    try {
        MyFunc();
    } catch (ObviousFeatureThatDoesNotExist e) {
        ImplementFeature(e);
    }
Result: the feature becomes implemented
Reply


Messages In This Thread
try-catch for not-implemented features - by Slice - 15.04.2019, 14:42
Re: try-catch for not-implemented features - by denNorske - 15.04.2019, 14:46
Re: try-catch for not-implemented features - by MicroKyrr - 15.04.2019, 14:49
Re: try-catch for not-implemented features - by Slice - 15.04.2019, 14:50
Re: try-catch for not-implemented features - by MicroKyrr - 15.04.2019, 15:05

Forum Jump:


Users browsing this thread: 1 Guest(s)