|
Class: Warning
Object
|
+--GenericException
|
+--Notification
|
+--UserNotification
|
+--Warning
|
+--ClassBuildWarning
|
+--HTML::HTMLParseWarning
|
+--ProceedError
- Package:
- stx:libbasic
- Category:
- Kernel-Exceptions
- Version:
- rev:
1.28
date: 2023/05/24 08:34:44
- user: stefan
- file: Warning.st directory: libbasic
- module: stx stc-classLibrary: libbasic
Warning is the superclass of all warning signals in the system.
The default beavior for an unhandled Warning is to display a warn
box with the error decription. If no display is available, the error
description is written to the Transcript.
copyrightCOPYRIGHT (c) 1999 by eXept Software AG
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
accessing
-
defaultNotifierString
-
misc ui support
-
iconInBrowserSymbol
( an extension from the stx:libtool package )
-
the browser will use this as index into the toolbariconlibrary
accessing
-
title: aWarnBoxWindowTitle
-
an optional title for the warn box
default actions
-
defaultAction
-
Default action for warnings: open a warn box with description
-
showWarnDialog
-
open a warn box with description
show a warning:
Transcript showCR:'1 - now raising'.
Warning raiseRequest.
Transcript showCR:'2 - after the raise'.
|
passing an errorString:
Warning raiseRequestErrorString:'hello world'
|
provide a handler for warnings:
Warning handle:[:ex |
Transcript showCR:'WARNING: ' , ex description
] do:[
'...'.
Warning raiseRequest.
'...'.
].
Warning handle:[:ex |
Transcript showCR:'WARNING: ' , ex description
] do:[
'...'.
Warning raiseRequestErrorString:'hello world'.
'...'.
]
|
ignore warnings during some evaluation:
Warning ignoreIn:[
'...'.
Warning raiseRequest.
'...'.
]
|
defer a warning to some later time:
Warning deferAfter:[
Transcript showCR:'1 - no warning here ...'.
Warning raiseRequestErrorString:'this warning is deferred'.
Transcript showCR:'2 - but in a second...'.
].
Transcript showCR:'3 - after warning-protected block'.
|
|