Principles of programming languages Maarit Harsu / Matti Rintala / Henri Hansen
TUT Pervasive Computing
1
Exception handling
- Exception
– infrequent, abnormal situation in program logic at program execution – not necessarily an error
- Reasons for exceptions:
– hardware events
- arithmetic overflow, parity errors
– operating system events
- out of memory exception
– programming language properties
- dynamic range checks
– application program properties
- subprogram abuse, data structure overflow/underflow