NameLookupError.st
author Claus Gittinger <cg@exept.de>
Tue, 25 Jun 2019 14:28:51 +0200
changeset 5050 44fa8672d102
parent 3446 f94c4418e035
permissions -rw-r--r--
#DOCUMENTATION by cg class: SharedQueue comment/format in: #next #nextWithTimeout:
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1521
4daa5084e31e copyright
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
     1
"
4daa5084e31e copyright
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
     2
 COPYRIGHT (c) 2004 by eXept Software AG
4daa5084e31e copyright
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
     3
              All Rights Reserved
4daa5084e31e copyright
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
     4
4daa5084e31e copyright
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
     5
 This software is furnished under a license and may be used
4daa5084e31e copyright
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
     6
 only in accordance with the terms of that license and with the
4daa5084e31e copyright
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
4daa5084e31e copyright
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
     8
 be provided or otherwise made available to, or used by, any
4daa5084e31e copyright
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
     9
 other person.  No title to or ownership of the software is
4daa5084e31e copyright
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
    10
 hereby transferred.
4daa5084e31e copyright
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
    11
"
1163
bf124794e128 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libbasic2' }"
bf124794e128 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    13
1469
252e0f1e51e2 Now subclass of ProceedableError.
Stefan Vogel <sv@exept.de>
parents: 1163
diff changeset
    14
ProceedableError subclass:#NameLookupError
252e0f1e51e2 Now subclass of ProceedableError.
Stefan Vogel <sv@exept.de>
parents: 1163
diff changeset
    15
	instanceVariableNames:'request'
1163
bf124794e128 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    16
	classVariableNames:''
bf124794e128 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    17
	poolDictionaries:''
bf124794e128 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    18
	category:'OS-Sockets'
bf124794e128 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    19
!
bf124794e128 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    20
1521
4daa5084e31e copyright
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
    21
!NameLookupError class methodsFor:'documentation'!
4daa5084e31e copyright
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
    22
4daa5084e31e copyright
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
    23
copyright
4daa5084e31e copyright
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
    24
"
4daa5084e31e copyright
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
    25
 COPYRIGHT (c) 2004 by eXept Software AG
4daa5084e31e copyright
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
    26
              All Rights Reserved
4daa5084e31e copyright
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
    27
4daa5084e31e copyright
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
    28
 This software is furnished under a license and may be used
4daa5084e31e copyright
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
    29
 only in accordance with the terms of that license and with the
4daa5084e31e copyright
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
4daa5084e31e copyright
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
    31
 be provided or otherwise made available to, or used by, any
4daa5084e31e copyright
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
    32
 other person.  No title to or ownership of the software is
4daa5084e31e copyright
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
    33
 hereby transferred.
4daa5084e31e copyright
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
    34
"
4daa5084e31e copyright
Claus Gittinger <cg@exept.de>
parents: 1469
diff changeset
    35
! !
1163
bf124794e128 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    36
bf124794e128 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    37
!NameLookupError class methodsFor:'initialization'!
bf124794e128 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    38
bf124794e128 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    39
initialize
bf124794e128 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    40
bf124794e128 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    41
    NotifierString := 'Cannot resolve name'
bf124794e128 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    42
! !
bf124794e128 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    43
1469
252e0f1e51e2 Now subclass of ProceedableError.
Stefan Vogel <sv@exept.de>
parents: 1163
diff changeset
    44
!NameLookupError methodsFor:'accessing'!
252e0f1e51e2 Now subclass of ProceedableError.
Stefan Vogel <sv@exept.de>
parents: 1163
diff changeset
    45
2447
Stefan Vogel <sv@exept.de>
parents: 1521
diff changeset
    46
nameToLookup
3074
94ff90275134 Fix HostAddressLookupError
Claus Gittinger <cg@exept.de>
parents: 2485
diff changeset
    47
    "subclasses redefine this"
2447
Stefan Vogel <sv@exept.de>
parents: 1521
diff changeset
    48
3074
94ff90275134 Fix HostAddressLookupError
Claus Gittinger <cg@exept.de>
parents: 2485
diff changeset
    49
    ^ ''.
2447
Stefan Vogel <sv@exept.de>
parents: 1521
diff changeset
    50
!
Stefan Vogel <sv@exept.de>
parents: 1521
diff changeset
    51
1469
252e0f1e51e2 Now subclass of ProceedableError.
Stefan Vogel <sv@exept.de>
parents: 1163
diff changeset
    52
request
252e0f1e51e2 Now subclass of ProceedableError.
Stefan Vogel <sv@exept.de>
parents: 1163
diff changeset
    53
    ^ request
252e0f1e51e2 Now subclass of ProceedableError.
Stefan Vogel <sv@exept.de>
parents: 1163
diff changeset
    54
!
252e0f1e51e2 Now subclass of ProceedableError.
Stefan Vogel <sv@exept.de>
parents: 1163
diff changeset
    55
252e0f1e51e2 Now subclass of ProceedableError.
Stefan Vogel <sv@exept.de>
parents: 1163
diff changeset
    56
request:something
252e0f1e51e2 Now subclass of ProceedableError.
Stefan Vogel <sv@exept.de>
parents: 1163
diff changeset
    57
    request := something.
252e0f1e51e2 Now subclass of ProceedableError.
Stefan Vogel <sv@exept.de>
parents: 1163
diff changeset
    58
! !
252e0f1e51e2 Now subclass of ProceedableError.
Stefan Vogel <sv@exept.de>
parents: 1163
diff changeset
    59
2447
Stefan Vogel <sv@exept.de>
parents: 1521
diff changeset
    60
!NameLookupError methodsFor:'printing'!
Stefan Vogel <sv@exept.de>
parents: 1521
diff changeset
    61
Stefan Vogel <sv@exept.de>
parents: 1521
diff changeset
    62
description
Stefan Vogel <sv@exept.de>
parents: 1521
diff changeset
    63
    |description nameToLookup|
Stefan Vogel <sv@exept.de>
parents: 1521
diff changeset
    64
Stefan Vogel <sv@exept.de>
parents: 1521
diff changeset
    65
    description := super description.
Stefan Vogel <sv@exept.de>
parents: 1521
diff changeset
    66
    nameToLookup := self nameToLookup.
Stefan Vogel <sv@exept.de>
parents: 1521
diff changeset
    67
    nameToLookup notEmptyOrNil ifTrue:[
3446
f94c4418e035 class: NameLookupError
Claus Gittinger <cg@exept.de>
parents: 3074
diff changeset
    68
         description := description, ': "', nameToLookup printString, '"'.
2447
Stefan Vogel <sv@exept.de>
parents: 1521
diff changeset
    69
    ].
Stefan Vogel <sv@exept.de>
parents: 1521
diff changeset
    70
    ^ description
Stefan Vogel <sv@exept.de>
parents: 1521
diff changeset
    71
! !
Stefan Vogel <sv@exept.de>
parents: 1521
diff changeset
    72
1163
bf124794e128 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    73
!NameLookupError class methodsFor:'documentation'!
bf124794e128 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    74
bf124794e128 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    75
version
3446
f94c4418e035 class: NameLookupError
Claus Gittinger <cg@exept.de>
parents: 3074
diff changeset
    76
    ^ '$Header: /cvs/stx/stx/libbasic2/NameLookupError.st,v 1.7 2014-11-24 18:12:02 cg Exp $'
2447
Stefan Vogel <sv@exept.de>
parents: 1521
diff changeset
    77
!
Stefan Vogel <sv@exept.de>
parents: 1521
diff changeset
    78
Stefan Vogel <sv@exept.de>
parents: 1521
diff changeset
    79
version_CVS
3446
f94c4418e035 class: NameLookupError
Claus Gittinger <cg@exept.de>
parents: 3074
diff changeset
    80
    ^ '$Header: /cvs/stx/stx/libbasic2/NameLookupError.st,v 1.7 2014-11-24 18:12:02 cg Exp $'
1163
bf124794e128 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    81
! !
bf124794e128 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    82
3074
94ff90275134 Fix HostAddressLookupError
Claus Gittinger <cg@exept.de>
parents: 2485
diff changeset
    83
1163
bf124794e128 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    84
NameLookupError initialize!