GenericException.st
changeset 20095 41d97ae1384a
parent 20089 2468c0711e9a
child 20131 4118d61ddba0
child 20186 1e8814a54967
equal deleted inserted replaced
20094:58ebd2ae8adc 20095:41d97ae1384a
    52         I.e. what used to be instances of Signal/QuerySignal is being
    52         I.e. what used to be instances of Signal/QuerySignal is being
    53         rewritten into subclasses of Exception/Error/Query and Warning.
    53         rewritten into subclasses of Exception/Error/Query and Warning.
    54         Although the functionality is basically unchanged, the new
    54         Although the functionality is basically unchanged, the new
    55         class based exceptions are easier to instantiate (no need for
    55         class based exceptions are easier to instantiate (no need for
    56         creation in a classes initialize method), easier to use (no real
    56         creation in a classes initialize method), easier to use (no real
    57         need for SIgnal-constant accessors) and allow for easier parameter
    57         need for Signal-constant accessors) and allow for easier parameter
    58         passing (not only a single parameter, but allows for individual
    58         passing (not only a single parameter, but allows for individual
    59         exception subclasses to add additional state).
    59         exception subclasses to add additional state).
    60 
    60 
    61     GenericException and its subclasses implement the same protocol as Signal.
    61     GenericException and its subclasses implement the same protocol as Signal.
    62     So class based exceptions may be implemented as subclasses of GenericException.
    62     So class based exceptions may be implemented as subclasses of GenericException.