Browse Definitions :
Definition

exception

Contributor(s): Matthew Haughn

An exception, in programming, is an unplanned event, such as invalid input or a loss of connectivity, that occurs while a program is executing and disrupts the flow of its instructions. Exception is a short way of saying exceptional event.

In Java, exceptions exist as a class, java.lang.Exception, with two main subclasses, IOException and RuntimeException. Checked exceptions occur when the program is compiled; for the most part, the program should be able to recover from these. These can be things like FileNotFoundException, for example, or InvalidInputExceptionException handling code can be written to deal with the issue, so that the program can continue.

Unchecked exceptions are events that aren’t planned for, so they aren’t checked at compile time – they happen when the program executes and typically can’t be handled. An unchecked exception that cannot be handled by the program is known as a fatal exception because it forces the operating system to close the program and possibly shut down the entire system. An error is a type of unchecked exception, although there are others.

This was last updated in July 2016

Continue Reading About exception

Join the conversation

2 comments

Send me notifications when other members comment.

Please create a username to comment.

Fine tuning these exceptions can be an ongoing task. There may always be one or two you need to add down the road. The reason being you assumed something that failed to be correct or that failed it's own exception test and let bad data through.
Cancel
18 exception in free memory ()
ERROR SHOWING IN SQL 2014 
HOW TO SOLVE IT?

Cancel

-ADS BY GOOGLE

File Extensions and File Formats

Powered by:

SearchCompliance

SearchSecurity

  • GPS jamming

    GPS jamming is the process of using a frequency transmitting device to block or interfere with radio communications.

  • time-based one-time password (TOTP)

    A time-based one-time password (TOTP) is a temporary code, generated by an algorithm, for use in authenticating access to ...

  • Security Operations Center (SOC)

    A security operations center (SOC) is a command center facility for a team of IT professionals with expertise in information ...

SearchHealthIT

SearchDisasterRecovery

  • disaster recovery team

    A disaster recovery team is a group of individuals focused on planning, implementing, maintaining, auditing and testing an ...

  • cloud insurance

    Cloud insurance is any type of financial or data protection obtained by a cloud service provider. 

  • business continuity software

    Business continuity software is an application or suite designed to make business continuity planning/business continuity ...

SearchStorage

  • SSD (solid-state drive)

    An SSD (solid-state drive) is a type of nonvolatile storage media that stores persistent data on solid-state flash memory.

  • NAND flash memory

    NAND flash memory is a type of nonvolatile storage technology that does not require power to retain data.

  • storage class memory (SCM)

    Storage class memory (SCM) is a type of NAND flash that includes a power source to ensure that data won't be lost due to a system...

Close