[Include] try/catch error handling
#2

Great job!

Integrating this piece of code with crashdetect would be awesome.
Код:
main() {
    new arr[2];
    try {
        arr[2] = 0; // throws "Array index out of bounds" exception
    } catch (e) {
        // bla bla..
    }
}
Reply


Messages In This Thread
try/catch error handling - by Slice - 24.03.2013, 16:49
Re: try/catch error handling - by Dan.. - 24.03.2013, 17:03
Re: try/catch error handling - by Slice - 24.03.2013, 17:16
Re: try/catch error handling - by Dan.. - 24.03.2013, 17:34
Re: try/catch error handling - by Whitetiger - 24.03.2013, 19:37
Re: try/catch error handling - by Dan.. - 24.03.2013, 19:41
Re: try/catch error handling - by Misiur - 24.03.2013, 19:46
Re: try/catch error handling - by Slice - 24.03.2013, 20:21
Re: try/catch error handling - by Slice - 05.04.2013, 21:35
Re: try/catch error handling - by Slice - 05.04.2013, 22:54

Forum Jump:


Users browsing this thread: 1 Guest(s)