application of exception handling

32

Upload: nusrat-jahan-nisha

Post on 15-Jan-2017

16 views

Category:

Engineering


2 download

TRANSCRIPT

Page 1: application of exception handling
Page 2: application of exception handling

Nusrat Jahan Nisha (152-15-6023)Raisa Tabassum (152-15-6022)Sumiya Sarah (152-15-5689)Susmita Sen (152-15-6027)

Fatema Zannat (152-15-6048)Umme Sabiha Alma (152-15-6031)

THE QUEEN BEES

Page 3: application of exception handling

APPLICATION OF

Page 4: application of exception handling

ExceptionException handling Nature of ExceptionHow exception can be handledAdvantages & disadvantagesConclusion

TOPICS OF DISCUSSION:

Page 5: application of exception handling

EXCEPTION

Page 6: application of exception handling

A process  that used in responding to the occurrence, during computation of exceptions : anomalous or exceptional conditions requiring special processing

changing the normal flow of program execution

EXCEPTION HANDLING?

Page 7: application of exception handling

Exceptions due to programming errorsclient code errorsresource failures

NATURE OF EXCEPTIONS

Page 8: application of exception handling

Null pointer Errors: Runtime Exception

EXCEPTIONS DUE TO PROGRAMMING ERRORS

Page 9: application of exception handling

Illegal Exception ErrorA runtime error

EXCEPTIONS DUE TO PROGRAMMING ERRORS

Page 10: application of exception handling

Sumiya Sarah 152-15-5689

Page 11: application of exception handling

Client code attempts something not allowed by the API

This Exception contains useful information about the location in the XML document that causes the problem

The client can use this information to take recovery steps.

EXCEPTIONS DUE TO CLIENT CODE ERRORS

Page 12: application of exception handling

EXCEPTIONS DUE TO CLIENT CODE ERRORS

Page 13: application of exception handling

EXCEPTIONS DUE TO CLIENT CODE ERRORS

Page 14: application of exception handling

Umme Sabiha Alma 152-15-6031

Page 15: application of exception handling

Exceptions that get generated when resources fail

system runs out of memory , or a network connection fails

EXCEPTIONS DUE TO RESOURCES FAILURES

Page 16: application of exception handling

EXCEPTIONS DUE TO RESOURCES FAILURES

Page 17: application of exception handling

Raisa Tabassum152-15-6022

Page 18: application of exception handling
Page 19: application of exception handling
Page 20: application of exception handling
Page 21: application of exception handling

Susmita Sen152-15-6027

Page 22: application of exception handling

Keywords used in exception handling:

Try CatchFinallyThrowThrows

HOW EXCEPTION CAN BE HANDLED

Page 23: application of exception handling
Page 24: application of exception handling
Page 25: application of exception handling

Fatema Zannat152-15-6048

Page 26: application of exception handling

Throw: System-generated exceptions are automatically thrown by the Java run-time system.

Throws: If a method is capable of causing an exception that it does not handle, it must specify this behavior so that callers of the method can guard themselves against that exception.

THROW AND THROWS

Page 27: application of exception handling
Page 28: application of exception handling
Page 29: application of exception handling

Identifies Error TypesSeparate error, handling codes from normal code

Clarifies the code and enhances readability

Makes clear and fault-tolerate program

ADVANTAGES

Page 30: application of exception handling

Exception handling can never be a disadvantage, you either need it or you don't in which case your application can crash.

DISADVANTAGES

Page 31: application of exception handling

THANK YOU

Page 32: application of exception handling