Back: ContextPart-printing
Up: Class reference
Forward: CoreException class-instance creation
 
Top: GNU Smalltalk User's Guide
Contents: Table of Contents
Index: Class index
About: About this document

6.37 CoreException

Defined in namespace Smalltalk
Category: Language-Exceptions

My instances describe a single event that can be trapped using #on:do:..., contain whether such execution can be resumed after such an event, a description of what happened, and a block that is used as an handler by default. Using my methods you can raise exceptions and create new exceptions. Exceptions are organized in a kind of hierarchy (different from the class hierarchy): intercepting an exception will intercept all its children too.

CoreExceptions are different from ANSI Exceptions in that the signaled exception is not an instance of the CoreException, instead it belongs to a different class, Signal. ANSI Exceptions inherit from Signal but hold on to a CoreException via a class-instance variable.

6.37.1 CoreException class: instance creation  (class)
6.37.2 CoreException: accessing  (instance)
6.37.3 CoreException: basic  (instance)
6.37.4 CoreException: enumerating  (instance)
6.37.5 CoreException: exception handling  (instance)
6.37.6 CoreException: instance creation  (instance)


6.37.1 CoreException class: instance creation

new
Create a new exception whose parent is ExAll


6.37.2 CoreException: accessing

defaultHandler
Answer the default handler for the receiver

defaultHandler: aBlock
Set the default handler of the receiver to aBlock. A Signal object will be passed to aBlock

description
Answer a description of the receiver

description: aString
Set the description of the receiver to aString

isResumable
Answer true if the receiver is resumable

isResumable: aBoolean
Set the resumable flag of the receiver to aBoolean

parent
Answer the parent of the receiver

signalClass
Answer the subclass of Signal to be passed to handler blocks that handle the receiver

signalClass: aClass
Set which subclass of Signal is to be passed to handler blocks that handle the receiver


6.37.3 CoreException: basic

copy
Answer a copy of the receiver


6.37.4 CoreException: enumerating

allExceptionsDo: aBlock
Private - Evaluate aBlock for every exception in the receiver. As it contains just one exception, evaluate it just once, passing the receiver

handles: exceptionOrSignal
Answer whether the receiver handles `exceptionOrSignal'.


6.37.5 CoreException: exception handling

signal
Raise the exception described by the receiver, passing no parameters

signalWith: arg
Raise the exception described by the receiver, passing the parameter arg

signalWith: arg with: arg2
Raise the exception described by the receiver, passing the parameters arg and arg2

signalWithArguments: args
Raise the exception described by the receiver, passing the parameters in args


6.37.6 CoreException: instance creation

newChild
Answer a child exception of the receiver. Its properties are set to those of the receiver




This document was generated on May, 12 2002 using texi2html