Warning.st
author Jan Vrany <jan.vrany@labware.com>
Tue, 01 Jun 2021 20:19:13 +0100
branchjv
changeset 25424 51bd8a6b196f
parent 19227 5e949760a4e8
permissions -rw-r--r--
Cherry-picked `Context` cherry-picked Context.st from a6b6dda4caff: * 4aaf30c174e9: #DOCUMENTATION by cg, Claus Gittinger <cg@exept.de> * c67311afcc6c: #OTHER by cg, Claus Gittinger <cg@exept.de> * 883f79e7b2a6: #FEATURE by cg, Claus Gittinger <cg@exept.de> * 716f3fbb09e9: Don't mark contexts with `CATCHMARK`, Jan Vrany <jan.vrany@fit.cvut.cz> * cff24fa817b0: #REFACTORING by stefan, Stefan Vogel <sv@exept.de> * 521f0d837330: #UI_ENHANCEMENT by cg, Claus Gittinger <cg@exept.de> * bf1118f0fcca: #UI_ENHANCEMENT by cg, Claus Gittinger <cg@exept.de> * e587cdd22868: #BUGFIX by cg, Claus Gittinger <cg@exept.de> * fe9f9487a3ed: #DOCUMENTATION by cg, Claus Gittinger <cg@exept.de> * d5b781899274: #BUGFIX by cg, Claus Gittinger <cg@exept.de> * 8258751a7465: #FEATURE by cg, Claus Gittinger <cg@exept.de> * 40173e082cbc: Copyright updates, Jan Vrany <jan.vrany@fit.cvut.cz> * 6db5c28207d5: #UI_ENHANCEMENT by cg, Claus Gittinger <cg@exept.de> * 871ea64fd5dc: #FEATURE by cg, Claus Gittinger <cg@exept.de> * 4b544a108e4e: #DOCUMENTATION by cg, Claus Gittinger <cg@exept.de> * 9a8d8399e566: #FEATURE by cgexept.de, Claus Gittinger <cg@exept.de> * 170b00be0103: #BUGFIX by stefan, Stefan Vogel <sv@exept.de> * a6c73965eae8: #FEATURE by cg, Claus Gittinger <cg@exept.de> * ce2a0e462ff0: #FEATURE by cg, Claus Gittinger <cg@exept.de> * 46a260a9ca92: #FEATURE by cg, Claus Gittinger <cg@exept.de> * 46cab49167fb: #UI_ENHANCEMENT by exept, Claus Gittinger <cg@exept.de> * 7d52dfd3997d: #DOCUMENTATION by exept, Claus Gittinger <cg@exept.de> * c52eeea62763: Fix `Context >> argAndVarNames` in cases when debug info is not available, Jan Vrany <jan.vrany@labware.com> * b5d6963fe4a9: Backed out changeset c52eeea62763, Jan Vrany <jan.vrany@labware.com> * 6fd3896f8703: #FEATURE by exept, Claus Gittinger <cg@exept.de> * b530ee616256: #REFACTORING by cg, Claus Gittinger <cg@exept.de> * ef9b481d7498: #FEATURE by cg, Claus Gittinger <cg@exept.de> * ea663b72bd51: #UI_ENHANCEMENT by cg, Claus Gittinger <cg@exept.de> * 6179572a733c: #FEATURE by exept, Claus Gittinger <cg@exept.de> * 84155b1b6622: #DOCUMENTATION by exept, Claus Gittinger <cg@exept.de> * 37d06602d856: *** empty log message ***, Claus Gittinger <cg@exept.de> * f927b9022fea: *** empty log message ***, Claus Gittinger <cg@exept.de> * 427d3be62d97: #UI_ENHANCEMENT by exept, Claus Gittinger <cg@exept.de>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4466
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4446
diff changeset
     1
"
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4446
diff changeset
     2
 COPYRIGHT (c) 1999 by eXept Software AG
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4446
diff changeset
     3
              All Rights Reserved
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4446
diff changeset
     4
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4446
diff changeset
     5
 This software is furnished under a license and may be used
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4446
diff changeset
     6
 only in accordance with the terms of that license and with the
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4446
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4446
diff changeset
     8
 be provided or otherwise made available to, or used by, any
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4446
diff changeset
     9
 other person.  No title to or ownership of the software is
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4446
diff changeset
    10
 hereby transferred.
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4446
diff changeset
    11
"
6206
59d1ec1e1ed5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5295
diff changeset
    12
"{ Package: 'stx:libbasic' }"
59d1ec1e1ed5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5295
diff changeset
    13
17307
8dfa29195a23 class: Warning
Claus Gittinger <cg@exept.de>
parents: 16423
diff changeset
    14
"{ NameSpace: Smalltalk }"
8dfa29195a23 class: Warning
Claus Gittinger <cg@exept.de>
parents: 16423
diff changeset
    15
7032
3c0246b4e602 Now Warning is a subclass of UserNotification.
Stefan Vogel <sv@exept.de>
parents: 6427
diff changeset
    16
UserNotification subclass:#Warning
4446
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    17
	instanceVariableNames:''
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    18
	classVariableNames:''
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    19
	poolDictionaries:''
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    20
	category:'Kernel-Exceptions'
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    21
!
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    22
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    23
!Warning class methodsFor:'documentation'!
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    24
4466
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4446
diff changeset
    25
copyright
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4446
diff changeset
    26
"
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4446
diff changeset
    27
 COPYRIGHT (c) 1999 by eXept Software AG
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4446
diff changeset
    28
              All Rights Reserved
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4446
diff changeset
    29
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4446
diff changeset
    30
 This software is furnished under a license and may be used
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4446
diff changeset
    31
 only in accordance with the terms of that license and with the
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4446
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4446
diff changeset
    33
 be provided or otherwise made available to, or used by, any
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4446
diff changeset
    34
 other person.  No title to or ownership of the software is
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4446
diff changeset
    35
 hereby transferred.
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4446
diff changeset
    36
"
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4446
diff changeset
    37
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4446
diff changeset
    38
!
9cba6f4ecec4 copyrights added; typo in docu
Claus Gittinger <cg@exept.de>
parents: 4446
diff changeset
    39
4446
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    40
documentation
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    41
"
12279
a76ac48afbdf changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 12083
diff changeset
    42
    Warning is the superclass of all warning signals in the system.
7038
89e892bb8226 Documentation
Stefan Vogel <sv@exept.de>
parents: 7032
diff changeset
    43
    The default beavior for an unhandled Warning is to display a warn
89e892bb8226 Documentation
Stefan Vogel <sv@exept.de>
parents: 7032
diff changeset
    44
    box with the error decription. If no display is available, the error 
89e892bb8226 Documentation
Stefan Vogel <sv@exept.de>
parents: 7032
diff changeset
    45
    description is written to the Transcript.
4446
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    46
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    47
    [author:]
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    48
        Stefan Vogel
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    49
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    50
    [see also:]
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    51
        Signal
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    52
"
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    53
!
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    54
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    55
examples
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    56
"
6427
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    57
  show a warning:
4446
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    58
                                                            [exBegin]
6427
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    59
    Transcript showCR:'1 - now raising'.
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    60
    Warning raiseRequest.
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    61
    Transcript showCR:'2 - after the raise'.
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    62
                                                            [exEnd]
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    63
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    64
  passing an errorString:
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    65
                                                            [exBegin]
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    66
    Warning raiseRequestErrorString:'hello world'
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    67
                                                            [exEnd]
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    68
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    69
  provide a handler for warnings:
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    70
                                                            [exBegin]
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    71
    Warning handle:[:ex |
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    72
        Transcript showCR:'WARNING: ' , ex description
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    73
    ] do:[
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    74
        '...'.
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    75
        Warning raiseRequest.
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    76
        '...'.
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    77
    ].
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    78
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    79
    Warning handle:[:ex |
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    80
        Transcript showCR:'WARNING: ' , ex description
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    81
    ] do:[
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    82
        '...'.
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    83
        Warning raiseRequestErrorString:'hello world'.
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    84
        '...'.
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    85
    ]
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    86
                                                            [exEnd]
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    87
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    88
  ignore warnings during some evaluation:
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    89
                                                            [exBegin]
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    90
    Warning ignoreIn:[
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    91
        '...'.
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    92
        Warning raiseRequest.
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    93
        '...'.
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    94
    ]
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    95
                                                            [exEnd]
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    96
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    97
  defer a warning to some later time:
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    98
                                                            [exBegin]
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
    99
    Warning deferAfter:[
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
   100
        Transcript showCR:'1 - no warning here ...'.
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
   101
        Warning raiseRequestErrorString:'this warning is deferred'.
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
   102
        Transcript showCR:'2 - but in a second...'.
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
   103
    ].
890d7bd17cce documentation
Claus Gittinger <cg@exept.de>
parents: 6206
diff changeset
   104
    Transcript showCR:'3 - after warning-protected block'.
4446
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   105
                                                            [exEnd]
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   106
"
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   107
! !
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   108
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   109
!Warning class methodsFor:'initialization'!
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   110
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   111
initialize
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   112
7032
3c0246b4e602 Now Warning is a subclass of UserNotification.
Stefan Vogel <sv@exept.de>
parents: 6427
diff changeset
   113
    NotifierString := 'Warning:'.
4446
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   114
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   115
    "
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   116
     self initialize
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   117
    "
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   118
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   119
    "Created: / 23.7.1999 / 15:34:27 / stefan"
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   120
! !
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   121
12083
079b2535924f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10517
diff changeset
   122
4446
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   123
!Warning methodsFor:'default actions'!
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   124
4525
999e680a29ca Make error classes public.
Stefan Vogel <sv@exept.de>
parents: 4508
diff changeset
   125
defaultAction
5295
f144309dab04 #errorString --> #description
Stefan Vogel <sv@exept.de>
parents: 4525
diff changeset
   126
    "Default action for warnings: open a warn box with description"
4446
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   127
16423
d14faa326453 class: Warning
Claus Gittinger <cg@exept.de>
parents: 12279
diff changeset
   128
    self showWarnDialog.
d14faa326453 class: Warning
Claus Gittinger <cg@exept.de>
parents: 12279
diff changeset
   129
    self proceed.
d14faa326453 class: Warning
Claus Gittinger <cg@exept.de>
parents: 12279
diff changeset
   130
d14faa326453 class: Warning
Claus Gittinger <cg@exept.de>
parents: 12279
diff changeset
   131
    "
d14faa326453 class: Warning
Claus Gittinger <cg@exept.de>
parents: 12279
diff changeset
   132
      Warning raiseRequestErrorString:' abc'
d14faa326453 class: Warning
Claus Gittinger <cg@exept.de>
parents: 12279
diff changeset
   133
    "
d14faa326453 class: Warning
Claus Gittinger <cg@exept.de>
parents: 12279
diff changeset
   134
d14faa326453 class: Warning
Claus Gittinger <cg@exept.de>
parents: 12279
diff changeset
   135
    "Modified: / 3.8.1999 / 14:06:41 / stefan"
d14faa326453 class: Warning
Claus Gittinger <cg@exept.de>
parents: 12279
diff changeset
   136
!
d14faa326453 class: Warning
Claus Gittinger <cg@exept.de>
parents: 12279
diff changeset
   137
d14faa326453 class: Warning
Claus Gittinger <cg@exept.de>
parents: 12279
diff changeset
   138
showWarnDialog
d14faa326453 class: Warning
Claus Gittinger <cg@exept.de>
parents: 12279
diff changeset
   139
    "open a warn box with description"
d14faa326453 class: Warning
Claus Gittinger <cg@exept.de>
parents: 12279
diff changeset
   140
4500
be0fe7e7e21b Write to transcript if Dialog is not available.
Stefan Vogel <sv@exept.de>
parents: 4466
diff changeset
   141
    |text|
be0fe7e7e21b Write to transcript if Dialog is not available.
Stefan Vogel <sv@exept.de>
parents: 4466
diff changeset
   142
5295
f144309dab04 #errorString --> #description
Stefan Vogel <sv@exept.de>
parents: 4525
diff changeset
   143
    text := self description.
4446
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   144
10517
160835ef7978 changed #defaultAction - use #hasDialog
Stefan Vogel <sv@exept.de>
parents: 8681
diff changeset
   145
    self hasDialog ifTrue:[
4500
be0fe7e7e21b Write to transcript if Dialog is not available.
Stefan Vogel <sv@exept.de>
parents: 4466
diff changeset
   146
        Dialog warn:text.
be0fe7e7e21b Write to transcript if Dialog is not available.
Stefan Vogel <sv@exept.de>
parents: 4466
diff changeset
   147
    ] ifFalse:[
be0fe7e7e21b Write to transcript if Dialog is not available.
Stefan Vogel <sv@exept.de>
parents: 4466
diff changeset
   148
        "
be0fe7e7e21b Write to transcript if Dialog is not available.
Stefan Vogel <sv@exept.de>
parents: 4466
diff changeset
   149
         on systems without GUI, simply show
be0fe7e7e21b Write to transcript if Dialog is not available.
Stefan Vogel <sv@exept.de>
parents: 4466
diff changeset
   150
         the message on the Transcript.
be0fe7e7e21b Write to transcript if Dialog is not available.
Stefan Vogel <sv@exept.de>
parents: 4466
diff changeset
   151
        "
17307
8dfa29195a23 class: Warning
Claus Gittinger <cg@exept.de>
parents: 16423
diff changeset
   152
        Transcript show:'Warning: '; showCR:text.
4500
be0fe7e7e21b Write to transcript if Dialog is not available.
Stefan Vogel <sv@exept.de>
parents: 4466
diff changeset
   153
    ].
4446
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   154
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   155
    "
7032
3c0246b4e602 Now Warning is a subclass of UserNotification.
Stefan Vogel <sv@exept.de>
parents: 6427
diff changeset
   156
      Warning raiseRequestErrorString:' abc'
4446
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   157
    "
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   158
4508
d64471bf34af No need to autoload.
Stefan Vogel <sv@exept.de>
parents: 4500
diff changeset
   159
    "Modified: / 3.8.1999 / 14:06:41 / stefan"
4446
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   160
! !
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   161
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   162
!Warning class methodsFor:'documentation'!
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   163
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   164
version
19201
b301ed05553d comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 17307
diff changeset
   165
    ^ '$Header$'
12083
079b2535924f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10517
diff changeset
   166
!
079b2535924f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10517
diff changeset
   167
079b2535924f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 10517
diff changeset
   168
version_CVS
19201
b301ed05553d comment/format in: #iconInBrowserSymbol
Claus Gittinger <cg@exept.de>
parents: 17307
diff changeset
   169
    ^ '$Header$'
4446
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   170
! !
7032
3c0246b4e602 Now Warning is a subclass of UserNotification.
Stefan Vogel <sv@exept.de>
parents: 6427
diff changeset
   171
16423
d14faa326453 class: Warning
Claus Gittinger <cg@exept.de>
parents: 12279
diff changeset
   172
4446
4da4e51fc1ab initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   173
Warning initialize!