TimeoutError.st
author Stefan Vogel <sv@exept.de>
Sun, 22 Aug 2004 19:47:38 +0200
changeset 8483 3e76a8fe740a
parent 7586 63e4900c8931
child 17711 39faaaf888b4
child 20265 264c329000a5
permissions -rw-r--r--
Change superclass to ProceedableError
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5569
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
     1
"
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
     2
 COPYRIGHT (c) 1999 by eXept Software AG
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
     3
              All Rights Reserved
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
     4
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
     5
 This software is furnished under a license and may be used
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
     6
 only in accordance with the terms of that license and with the
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
     8
 be provided or otherwise made available to, or used by, any
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
     9
 other person.  No title to or ownership of the software is
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
    10
 hereby transferred.
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
    11
"
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
    12
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
    13
"{ Package: 'stx:libbasic' }"
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
    14
8483
3e76a8fe740a Change superclass to ProceedableError
Stefan Vogel <sv@exept.de>
parents: 7586
diff changeset
    15
ProceedableError subclass:#TimeoutError
4915
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    16
	instanceVariableNames:''
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    17
	classVariableNames:''
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    18
	poolDictionaries:''
6210
d7039e2ae776 caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents: 5569
diff changeset
    19
	category:'Kernel-Exceptions-Errors'
4915
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    20
!
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    21
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    22
!TimeoutError class methodsFor:'documentation'!
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    23
5569
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
    24
copyright
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
    25
"
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
    26
 COPYRIGHT (c) 1999 by eXept Software AG
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
    27
              All Rights Reserved
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
    28
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
    29
 This software is furnished under a license and may be used
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
    30
 only in accordance with the terms of that license and with the
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
    31
 inclusion of the above copyright notice.   This software may not
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
    32
 be provided or otherwise made available to, or used by, any
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
    33
 other person.  No title to or ownership of the software is
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
    34
 hereby transferred.
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
    35
"
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
    36
!
109bc06e4438 copyright added
Claus Gittinger <cg@exept.de>
parents: 4915
diff changeset
    37
4915
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    38
documentation
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    39
"
8483
3e76a8fe740a Change superclass to ProceedableError
Stefan Vogel <sv@exept.de>
parents: 7586
diff changeset
    40
    TimeoutError may be raised, when a timeout on some operation occurs.
4915
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    41
    It is recommended to perform the operation in a while-loop, and to raise the
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    42
    exception proceedable, in order to retry the operation or wait
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    43
    by proceeding the exception.
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    44
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    45
    [author:]
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    46
        Stefan Vogel
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    47
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    48
    [instance variables]
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    49
        parameter      value of the timer in seconds
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    50
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    51
"
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    52
! !
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    53
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    54
!TimeoutError class methodsFor:'initialization'!
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    55
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    56
initialize
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    57
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    58
    NotifierString := 'timeout occured'.
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    59
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    60
    "
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    61
     self initialize
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    62
    "
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    63
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    64
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    65
! !
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    66
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    67
!TimeoutError class methodsFor:'documentation'!
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    68
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    69
version
8483
3e76a8fe740a Change superclass to ProceedableError
Stefan Vogel <sv@exept.de>
parents: 7586
diff changeset
    70
    ^ '$Header: /cvs/stx/stx/libbasic/TimeoutError.st,v 1.5 2004-08-22 17:47:07 stefan Exp $'
4915
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    71
! !
7586
63e4900c8931 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6210
diff changeset
    72
4915
41d5b675769a initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    73
TimeoutError initialize!