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