author | Claus Gittinger <cg@exept.de> |
Mon, 13 Feb 2017 20:44:07 +0100 | |
changeset 21434 | e9cd145acfa9 |
parent 8681 | 38aa963476a5 |
child 17711 | 39faaaf888b4 |
permissions | -rw-r--r-- |
6435 | 1 |
" |
2 |
COPYRIGHT (c) 2002 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
13 |
"{ Package: 'stx:libbasic' }" |
|
14 |
||
15 |
Query subclass:#QueryWithoutDefault |
|
16 |
instanceVariableNames:'' |
|
17 |
classVariableNames:'' |
|
18 |
poolDictionaries:'' |
|
19 |
category:'Kernel-Exceptions' |
|
20 |
! |
|
21 |
||
22 |
!QueryWithoutDefault class methodsFor:'documentation'! |
|
23 |
||
24 |
copyright |
|
25 |
" |
|
26 |
COPYRIGHT (c) 2002 by eXept Software AG |
|
27 |
All Rights Reserved |
|
28 |
||
29 |
This software is furnished under a license and may be used |
|
30 |
only in accordance with the terms of that license and with the |
|
31 |
inclusion of the above copyright notice. This software may not |
|
32 |
be provided or otherwise made available to, or used by, any |
|
33 |
other person. No title to or ownership of the software is |
|
34 |
hereby transferred. |
|
35 |
" |
|
36 |
! |
|
37 |
||
38 |
documentation |
|
39 |
" |
|
40 |
Like a Query, but MUST be handled (i.e. an answer:do: context must |
|
41 |
be found when a query is asked). |
|
42 |
If unhandled, a NoHandler exception is raised as usual. |
|
43 |
||
44 |
[author:] |
|
45 |
Claus Gittinger |
|
46 |
||
47 |
[see also:] |
|
48 |
Query Warning Signal QuerySignal |
|
49 |
" |
|
50 |
! |
|
51 |
||
52 |
examples |
|
53 |
" |
|
54 |
[exBegin] |
|
55 |
QueryWithoutDefault answer:'hello' |
|
56 |
do:[ |
|
57 |
Transcript showCR:(QueryWithoutDefault query) |
|
58 |
] |
|
59 |
[exEnd] |
|
60 |
||
61 |
||
62 |
[exBegin] |
|
63 |
QueryWithoutDefault query |
|
64 |
[exEnd] |
|
65 |
" |
|
66 |
! ! |
|
67 |
||
68 |
!QueryWithoutDefault class methodsFor:'initialization'! |
|
69 |
||
70 |
initialize |
|
71 |
||
72 |
NotifierString := 'unhandled query' |
|
73 |
! ! |
|
74 |
||
75 |
!QueryWithoutDefault methodsFor:'default actions'! |
|
76 |
||
6452
724216a83503
redefine #defaultAction instead of defaultValue.
Claus Gittinger <cg@exept.de>
parents:
6435
diff
changeset
|
77 |
defaultAction |
6435 | 78 |
"re-redefined to raise a noHandler error, if no handler was found" |
79 |
||
80 |
^ self noHandler |
|
81 |
! ! |
|
82 |
||
83 |
!QueryWithoutDefault class methodsFor:'documentation'! |
|
84 |
||
85 |
version |
|
8681
38aa963476a5
Support for Block>>#on:do:on:do:
Stefan Vogel <sv@exept.de>
parents:
6452
diff
changeset
|
86 |
^ '$Header: /cvs/stx/stx/libbasic/QueryWithoutDefault.st,v 1.3 2005-01-20 12:26:17 stefan Exp $' |
6435 | 87 |
! ! |
8681
38aa963476a5
Support for Block>>#on:do:on:do:
Stefan Vogel <sv@exept.de>
parents:
6452
diff
changeset
|
88 |
|
6435 | 89 |
QueryWithoutDefault initialize! |