answersLogoWhite

0


Best Answer

The noun exception is a singular, common, abstract noun; a word for a person or thing that is excluded from a general statement or does not follow a rule, something that cannot be included in a general statement.

In computer programming, the term exception is shorthand for the phrase "exceptional event", which occurs during the execution of a program, that disrupts the normal flow of the program's instructions.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is an exception?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Computer Science

What is the exact difference between interrupt handling and exception handling?

interrupt handling is the process of handling a break or interrupt called by a program where as exception handling is for handling some exceptional conditions that'll occur when a program is running


What is drive F?

this, is most likely one of your CD/DVD drives, or, in an exception, your hard drive.


Which layer offers provisions for data expedition class of service and exception reporting?

session layer


How do you enable Internet Storage Name Server iSNS firewall exception?

Command prompt: iscsicli FirewallExemptiSNSServer


Why is catch Exception almost always a bad idea?

Well, if at that point you know that an error has occurred, then why not write the proper code to handle that error instead of passing a new Exception object to the catch block? Throwing your own exceptions signifies some design flaws in the project. I think the bigger point is that if you are catching the Exception superclass, then you have no idea which type of exception is being thrown and will thus not be able to recover from specific problems. It's almost always better to write this: try { InputStream in = new FileInputStream("myfile.txt"); int ch; while ((ch = in.read()) != -1) { System.out.print((char) ch); } in.close(); } catch (FileNotFoundException ex) { } catch (IOException ex) { } Than it is to write this: try { InputStream in = new FileInputStream("myfile.txt"); int ch; while ((ch = in.read()) != -1) { System.out.print((char) ch); } in.close(); } catch (Exception ex) { // We have no idea what went wrong here. }

Related questions

How many constructors does class Exception have?

The Exception class has 4 constructors. They are: a. Exception() b. Exception(String arg) c. Exception(String arg, Throwable arg1) d. Exception(Throwable arg)


Is US of America an exception?

Exception for what?


What is exception unknown software exception Oxc0000417 occurred in the application at location Ox100e5538?

exception 0xc0000417 This exception copied as it appeared on my screen !


Use the word exception in a sentence?

I take exception to your retort. I will make an exception in this instance.


What is the opposite of exception?

The opposite of exception is inclusion.(In categorization or regulation, the exception is the opposite of the rule.)


Write the 3 user defined exception in java?

1. Arithmetic Exception 2. Input Output Exception 3. Number Format Exception


Which action will raise an exception?

Which action will raise an exception


What is mapping exception in c plus plus?

There is no such exception in C++. It's probably a 3rd party or user-defined exception. Examine the call-stack to determine where the exception was caught -- that should help you determine where the exception was thrown.


How exception handling is different from error?

we know that exception can happen ..but we dont know about errors .. we dont have knowledge about them in already ...but in case of exception we take some prevential actions and put already an exception block to catch that exception


Does throws throws only unchecked exception?

You can throw any type of exception you want, including an unchecked exception.


What is an unhandled exception?

An unhandled exception is an Exception that is thrown by execution but is never caught by the program, which results in a nasty Exception Stack. This could be avoided by catching the exception in a try-catch statement, but it is not always appropriate to catch every possible exception. Sometimes the exception is the result of the client making a mistake rather than something that occurred where it is thrown, therefore the client should be informed of the exception. But most of the time it is user friendly to not propagate exceptions.


When was The Only Exception created?

The Only Exception was created in 2009.