7593
|
1 |
"
|
|
2 |
COPYRIGHT (c) 2003 by eXept Software AG
|
|
3 |
All Rights Reserved
|
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
21047
|
12 |
"{ Package: 'stx:libbasic' }"
|
7593
|
13 |
|
21047
|
14 |
"{ NameSpace: Smalltalk }"
|
6270
|
15 |
|
|
16 |
Error subclass:#OsError
|
|
17 |
instanceVariableNames:''
|
|
18 |
classVariableNames:''
|
|
19 |
poolDictionaries:''
|
|
20 |
category:'OS-Support'
|
|
21 |
!
|
|
22 |
|
7593
|
23 |
!OsError class methodsFor:'documentation'!
|
|
24 |
|
|
25 |
copyright
|
|
26 |
"
|
|
27 |
COPYRIGHT (c) 2003 by eXept Software AG
|
|
28 |
All Rights Reserved
|
|
29 |
|
|
30 |
This software is furnished under a license and may be used
|
|
31 |
only in accordance with the terms of that license and with the
|
|
32 |
inclusion of the above copyright notice. This software may not
|
|
33 |
be provided or otherwise made available to, or used by, any
|
|
34 |
other person. No title to or ownership of the software is
|
|
35 |
hereby transferred.
|
|
36 |
"
|
|
37 |
! !
|
|
38 |
|
21047
|
39 |
!OsError class methodsFor:'initialization'!
|
|
40 |
|
|
41 |
initialize
|
|
42 |
NotifierString := 'OperatingSystem error'.
|
|
43 |
! !
|
|
44 |
|
6270
|
45 |
!OsError class methodsFor:'queries'!
|
|
46 |
|
|
47 |
mayProceed
|
|
48 |
^ true
|
|
49 |
! !
|
|
50 |
|
21047
|
51 |
!OsError methodsFor:'accessing'!
|
|
52 |
|
|
53 |
description
|
|
54 |
|
|
55 |
"parameter is an OSErrorHolder, if present"
|
21057
|
56 |
parameter class == OSErrorHolder ifTrue:[
|
|
57 |
^ super description , ' (', parameter description, ')'.
|
21047
|
58 |
].
|
|
59 |
^ super description.
|
|
60 |
|
|
61 |
"
|
|
62 |
[
|
|
63 |
(OperatingSystem errorHolderForNumber:22)
|
|
64 |
parameter:'bla';
|
|
65 |
reportError.
|
|
66 |
] on:OsError do:[:ex|
|
|
67 |
ex description inspect.
|
|
68 |
].
|
|
69 |
"
|
|
70 |
!
|
|
71 |
|
|
72 |
errorCategory
|
|
73 |
|
|
74 |
"parameter is an OSErrorHolder, if present"
|
|
75 |
parameter notNil ifTrue:[
|
|
76 |
^ parameter errorCategory.
|
|
77 |
].
|
|
78 |
^ ''.
|
|
79 |
!
|
|
80 |
|
|
81 |
errorString
|
|
82 |
|
|
83 |
"parameter is an OSErrorHolder, if present"
|
|
84 |
parameter notNil ifTrue:[
|
|
85 |
^ parameter errorString.
|
|
86 |
].
|
|
87 |
^ ''.
|
|
88 |
!
|
|
89 |
|
|
90 |
errorSymbol
|
|
91 |
|
|
92 |
"parameter is an OSErrorHolder, if present"
|
|
93 |
parameter notNil ifTrue:[
|
|
94 |
^ parameter errorSymbol.
|
|
95 |
].
|
|
96 |
^ ''.
|
|
97 |
! !
|
|
98 |
|
7593
|
99 |
!OsError class methodsFor:'documentation'!
|
|
100 |
|
|
101 |
version
|
21047
|
102 |
^ '$Header$'
|
7593
|
103 |
! !
|
21047
|
104 |
|
|
105 |
|
|
106 |
OsError initialize!
|