presentation22 - Exception Soheil Hassas Yeganeh Computer...

Info iconThis preview shows pages 1–12. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Exception Soheil Hassas Yeganeh Computer Engineering Department Sharif University of Technology Different Aspects of a Software 2 Software Error Handling Logging Security Data Different Aspects of a Software The main algorithm Data Management Error Handling Logging Security Mechanism ... 2 Software Error Handling Logging Security Data High Ratio! 3 High Ratio! • More than 30% of the code are for managing the exceptional behavior of a software. • if ( input == null ) ... • if ( i == 0 ) ... • if ( passwordIsIncorrect ) ... 3 A Problem 4 A Problem • Error handling codes are weaved through the entire program . • This make the program very hard to read . 4 Idea 5 Normal Instructions Exceptional Instructions Error? No Yes Idea • It would be better to separate normal behaviors of a software from exceptional behaviors . • It is not an OO idea ! • Any problem it has? 5 Normal Instructions Exceptional Instructions Error? No Yes Idea • It would be better to separate normal behaviors of a software from exceptional behaviors . • It is not an OO idea ! • Any problem it has? 5 Normal Instructions Exceptional Instructions Error? No Yes May be errors can occur in Exceptional Instructions! 4.3BSD 1986 6 if ( !m ) goto error; .......
View Full Document

Page1 / 35

presentation22 - Exception Soheil Hassas Yeganeh Computer...

This preview shows document pages 1 - 12. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online