Programming 2: Week 9 - Exceptions

LoadingLoading previews...
Exceptions
HTML Creative Commons: Attribution-Noncommercial-No Derivative Works 4.0
View
    Exceptions
    Exceptions
    1 file in this resource
    Summary: Exceptions (named from the term 'exceptional event') are event that occur during the execution of a program that interrupt the flow of the programs normal operation, i.e. when a serious problem occurs, the program will throw an exception. Throwing an exception creates an exception object which is handed over to the runtime system. Exception objects details the type of error, location and state of the program. Runtime system attempts to handle exception by looking in the call stack and searching through the ordered list of methods invoked prior to exception the being thrown in order to get to the method where the error occurs. The is achieved by sreaching the methods for a block of code that can handle the exception, known as the exception handler. When the appropriate exception handler has been found and object is passed to the exception handling block.
    Creators:
    Divisions: Academic > School of Computing, Engineering and Built Environment > Department of Computing > Computing
    Copyright holder: Copyright © Glasgow Caledonian University
    Viewing permissions: World
    Depositing User:
    Date Deposited: 08 Jan 2018 14:54
    Last Modified: 08 Jan 2020 12:48
    URI: https://edshare.gcu.ac.uk/id/eprint/3320

    Actions (login required)

    View Item View Item

    Toolbox

    There are no actions available for this resource.