HostNameLookupError.st
author Jan Vrany <jan.vrany@labware.com>
Wed, 30 Jun 2021 14:07:56 +0100
branchjv
changeset 5481 19d6355dc3e1
parent 3073 d5f3b25d9040
child 4624 ec2e3e034b79
permissions -rw-r--r--
Cherry-picked `Unicode32String` from 48677b66883e: cherry-picked Unicode32String.st from 48677b66883e: * cb05c61f9204: #FEATURE by stefan, Stefan Vogel <sv@exept.de> * 5f6a992925c2: #DOCUMENTATION by stefan, Stefan Vogel <sv@exept.de> * 45176601c636: #BUGFIX by exept, Claus Gittinger <cg@exept.de> * d6f50be034db: #REFACTORING by stefan, Stefan Vogel <sv@exept.de> * ae8ed6040c96: #REFACTORING by stefan, Stefan Vogel <sv@exept.de>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1522
7a569eca4d68 copyright
Claus Gittinger <cg@exept.de>
parents: 1472
diff changeset
     1
"
7a569eca4d68 copyright
Claus Gittinger <cg@exept.de>
parents: 1472
diff changeset
     2
 COPYRIGHT (c) 2004 by eXept Software AG
7a569eca4d68 copyright
Claus Gittinger <cg@exept.de>
parents: 1472
diff changeset
     3
              All Rights Reserved
7a569eca4d68 copyright
Claus Gittinger <cg@exept.de>
parents: 1472
diff changeset
     4
7a569eca4d68 copyright
Claus Gittinger <cg@exept.de>
parents: 1472
diff changeset
     5
 This software is furnished under a license and may be used
7a569eca4d68 copyright
Claus Gittinger <cg@exept.de>
parents: 1472
diff changeset
     6
 only in accordance with the terms of that license and with the
7a569eca4d68 copyright
Claus Gittinger <cg@exept.de>
parents: 1472
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
7a569eca4d68 copyright
Claus Gittinger <cg@exept.de>
parents: 1472
diff changeset
     8
 be provided or otherwise made available to, or used by, any
7a569eca4d68 copyright
Claus Gittinger <cg@exept.de>
parents: 1472
diff changeset
     9
 other person.  No title to or ownership of the software is
7a569eca4d68 copyright
Claus Gittinger <cg@exept.de>
parents: 1472
diff changeset
    10
 hereby transferred.
7a569eca4d68 copyright
Claus Gittinger <cg@exept.de>
parents: 1472
diff changeset
    11
"
1472
133213bfc075 *** empty log message ***
Stefan Vogel <sv@exept.de>
parents: 1471
diff changeset
    12
"{ Package: 'stx:libbasic2' }"
1471
124fe8636686 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    13
124fe8636686 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    14
NameLookupError subclass:#HostNameLookupError
124fe8636686 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    15
	instanceVariableNames:''
124fe8636686 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    16
	classVariableNames:''
124fe8636686 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    17
	poolDictionaries:''
124fe8636686 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    18
	category:'Kernel-Exceptions-Errors'
124fe8636686 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    19
!
124fe8636686 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    20
1522
7a569eca4d68 copyright
Claus Gittinger <cg@exept.de>
parents: 1472
diff changeset
    21
!HostNameLookupError class methodsFor:'documentation'!
7a569eca4d68 copyright
Claus Gittinger <cg@exept.de>
parents: 1472
diff changeset
    22
7a569eca4d68 copyright
Claus Gittinger <cg@exept.de>
parents: 1472
diff changeset
    23
copyright
7a569eca4d68 copyright
Claus Gittinger <cg@exept.de>
parents: 1472
diff changeset
    24
"
7a569eca4d68 copyright
Claus Gittinger <cg@exept.de>
parents: 1472
diff changeset
    25
 COPYRIGHT (c) 2004 by eXept Software AG
7a569eca4d68 copyright
Claus Gittinger <cg@exept.de>
parents: 1472
diff changeset
    26
              All Rights Reserved
7a569eca4d68 copyright
Claus Gittinger <cg@exept.de>
parents: 1472
diff changeset
    27
7a569eca4d68 copyright
Claus Gittinger <cg@exept.de>
parents: 1472
diff changeset
    28
 This software is furnished under a license and may be used
7a569eca4d68 copyright
Claus Gittinger <cg@exept.de>
parents: 1472
diff changeset
    29
 only in accordance with the terms of that license and with the
7a569eca4d68 copyright
Claus Gittinger <cg@exept.de>
parents: 1472
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
7a569eca4d68 copyright
Claus Gittinger <cg@exept.de>
parents: 1472
diff changeset
    31
 be provided or otherwise made available to, or used by, any
7a569eca4d68 copyright
Claus Gittinger <cg@exept.de>
parents: 1472
diff changeset
    32
 other person.  No title to or ownership of the software is
7a569eca4d68 copyright
Claus Gittinger <cg@exept.de>
parents: 1472
diff changeset
    33
 hereby transferred.
7a569eca4d68 copyright
Claus Gittinger <cg@exept.de>
parents: 1472
diff changeset
    34
"
7a569eca4d68 copyright
Claus Gittinger <cg@exept.de>
parents: 1472
diff changeset
    35
! !
1471
124fe8636686 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    36
124fe8636686 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    37
!HostNameLookupError class methodsFor:'initialization'!
124fe8636686 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    38
124fe8636686 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    39
initialize
124fe8636686 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    40
124fe8636686 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    41
    NotifierString := 'Cannot resolve host name'
124fe8636686 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    42
! !
124fe8636686 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    43
3073
d5f3b25d9040 Fix HostAddressLookupError
Claus Gittinger <cg@exept.de>
parents: 1522
diff changeset
    44
!HostNameLookupError methodsFor:'accessing'!
d5f3b25d9040 Fix HostAddressLookupError
Claus Gittinger <cg@exept.de>
parents: 1522
diff changeset
    45
d5f3b25d9040 Fix HostAddressLookupError
Claus Gittinger <cg@exept.de>
parents: 1522
diff changeset
    46
nameToLookup
d5f3b25d9040 Fix HostAddressLookupError
Claus Gittinger <cg@exept.de>
parents: 1522
diff changeset
    47
    request notNil ifTrue:[
d5f3b25d9040 Fix HostAddressLookupError
Claus Gittinger <cg@exept.de>
parents: 1522
diff changeset
    48
        ^ request canonicalName.
d5f3b25d9040 Fix HostAddressLookupError
Claus Gittinger <cg@exept.de>
parents: 1522
diff changeset
    49
    ].
d5f3b25d9040 Fix HostAddressLookupError
Claus Gittinger <cg@exept.de>
parents: 1522
diff changeset
    50
    ^ nil.
d5f3b25d9040 Fix HostAddressLookupError
Claus Gittinger <cg@exept.de>
parents: 1522
diff changeset
    51
! !
d5f3b25d9040 Fix HostAddressLookupError
Claus Gittinger <cg@exept.de>
parents: 1522
diff changeset
    52
1471
124fe8636686 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    53
!HostNameLookupError class methodsFor:'documentation'!
124fe8636686 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    54
124fe8636686 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    55
version
3073
d5f3b25d9040 Fix HostAddressLookupError
Claus Gittinger <cg@exept.de>
parents: 1522
diff changeset
    56
    ^ '$Header: /cvs/stx/stx/libbasic2/HostNameLookupError.st,v 1.4 2013-08-09 14:22:26 cg Exp $'
1471
124fe8636686 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    57
! !
124fe8636686 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    58
3073
d5f3b25d9040 Fix HostAddressLookupError
Claus Gittinger <cg@exept.de>
parents: 1522
diff changeset
    59
1471
124fe8636686 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    60
HostNameLookupError initialize!