author | Patrik Svestka <patrik.svestka@gmail.com> |
Tue, 09 Apr 2019 11:34:04 +0200 | |
branch | jv |
changeset 24093 | 0f94f6c8c9d4 |
parent 17911 | a99f15c5efa5 |
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 |
"{ Package: 'stx:libbasic' }" |
|
13 |
||
14 |
Query subclass:#QueryWithoutDefault |
|
15 |
instanceVariableNames:'' |
|
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
18 |
category:'Kernel-Exceptions' |
|
19 |
! |
|
20 |
||
21 |
!QueryWithoutDefault class methodsFor:'documentation'! |
|
22 |
||
23 |
copyright |
|
24 |
" |
|
25 |
COPYRIGHT (c) 2002 by eXept Software AG |
|
26 |
All Rights Reserved |
|
27 |
||
28 |
This software is furnished under a license and may be used |
|
29 |
only in accordance with the terms of that license and with the |
|
30 |
inclusion of the above copyright notice. This software may not |
|
31 |
be provided or otherwise made available to, or used by, any |
|
32 |
other person. No title to or ownership of the software is |
|
33 |
hereby transferred. |
|
34 |
" |
|
35 |
! |
|
36 |
||
37 |
documentation |
|
38 |
" |
|
39 |
Like a Query, but MUST be handled (i.e. an answer:do: context must |
|
40 |
be found when a query is asked). |
|
41 |
If unhandled, a NoHandler exception is raised as usual. |
|
42 |
||
43 |
[author:] |
|
44 |
Claus Gittinger |
|
45 |
||
46 |
[see also:] |
|
47 |
Query Warning Signal QuerySignal |
|
48 |
" |
|
49 |
! |
|
50 |
||
51 |
examples |
|
52 |
" |
|
53 |
[exBegin] |
|
54 |
QueryWithoutDefault answer:'hello' |
|
55 |
do:[ |
|
56 |
Transcript showCR:(QueryWithoutDefault query) |
|
57 |
] |
|
58 |
[exEnd] |
|
59 |
||
60 |
||
61 |
[exBegin] |
|
62 |
QueryWithoutDefault query |
|
63 |
[exEnd] |
|
64 |
" |
|
65 |
! ! |
|
66 |
||
67 |
!QueryWithoutDefault class methodsFor:'initialization'! |
|
68 |
||
69 |
initialize |
|
70 |
||
71 |
NotifierString := 'unhandled query' |
|
72 |
! ! |
|
73 |
||
74 |
!QueryWithoutDefault methodsFor:'default actions'! |
|
75 |
||
6452
724216a83503
redefine #defaultAction instead of defaultValue.
Claus Gittinger <cg@exept.de>
parents:
6435
diff
changeset
|
76 |
defaultAction |
6435 | 77 |
"re-redefined to raise a noHandler error, if no handler was found" |
78 |
||
79 |
^ self noHandler |
|
80 |
! ! |
|
81 |
||
82 |
!QueryWithoutDefault class methodsFor:'documentation'! |
|
83 |
||
84 |
version |
|
17892 | 85 |
^ '$Header: /cvs/stx/stx/libbasic/QueryWithoutDefault.st,v 1.3 2005/01/20 12:26:17 stefan Exp $' |
17761
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
86 |
! |
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
87 |
|
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
88 |
version_SVN |
17911 | 89 |
^ '$Id: QueryWithoutDefault.st 10761 2012-01-19 11:46:00Z vranyj1 $' |
6435 | 90 |
! ! |
8681
38aa963476a5
Support for Block>>#on:do:on:do:
Stefan Vogel <sv@exept.de>
parents:
6452
diff
changeset
|
91 |
|
17846 | 92 |
QueryWithoutDefault initialize! |
17892 | 93 |
|
17910 | 94 |
|
17911 | 95 |