author | Claus Gittinger <cg@exept.de> |
Mon, 13 Feb 2017 20:44:57 +0100 | |
changeset 21436 | 0d0ac206b48a |
parent 20005 | 33091ec3a336 |
child 20079 | 8d884971c2ed |
child 22435 | d7b92e627ed6 |
permissions | -rw-r--r-- |
7908 | 1 |
" |
2 |
COPYRIGHT (c) 2004 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 |
" |
|
7900 | 12 |
"{ Package: 'stx:libbasic' }" |
13 |
||
17267
1d49121c1dc7
class: CharacterEncoderError
Claus Gittinger <cg@exept.de>
parents:
11296
diff
changeset
|
14 |
"{ NameSpace: Smalltalk }" |
1d49121c1dc7
class: CharacterEncoderError
Claus Gittinger <cg@exept.de>
parents:
11296
diff
changeset
|
15 |
|
7930 | 16 |
ConversionError subclass:#CharacterEncoderError |
7907 | 17 |
instanceVariableNames:'defaultValue' |
7900 | 18 |
classVariableNames:'' |
19 |
poolDictionaries:'' |
|
20 |
category:'Collections-Text-Encodings' |
|
21 |
! |
|
22 |
||
7908 | 23 |
!CharacterEncoderError class methodsFor:'documentation'! |
24 |
||
25 |
copyright |
|
26 |
" |
|
27 |
COPYRIGHT (c) 2004 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 |
||
39 |
documentation |
|
40 |
" |
|
41 |
raised if no encoding/decoding exists for some codePoint |
|
42 |
while converting |
|
20005 | 43 |
(for example, when converting unicode to ISO-8859-x and vice versa). |
7908 | 44 |
" |
45 |
! ! |
|
7900 | 46 |
|
7907 | 47 |
!CharacterEncoderError methodsFor:'accessing'! |
48 |
||
49 |
defaultValue |
|
8046 | 50 |
^ defaultValue ? 16rFFFF "/ unicode invalid character |
7907 | 51 |
! |
52 |
||
53 |
defaultValue:something |
|
54 |
defaultValue := something. |
|
55 |
! ! |
|
56 |
||
8046 | 57 |
!CharacterEncoderError methodsFor:'queries'! |
58 |
||
11296 | 59 |
defaultResumeValue |
17267
1d49121c1dc7
class: CharacterEncoderError
Claus Gittinger <cg@exept.de>
parents:
11296
diff
changeset
|
60 |
"the default answer, if no one handles the query and the exception is resumed" |
1d49121c1dc7
class: CharacterEncoderError
Claus Gittinger <cg@exept.de>
parents:
11296
diff
changeset
|
61 |
|
11296 | 62 |
^ self defaultValue |
63 |
! |
|
64 |
||
8046 | 65 |
isInvalidEncodingError |
66 |
^ false |
|
67 |
! ! |
|
68 |
||
7900 | 69 |
!CharacterEncoderError class methodsFor:'documentation'! |
70 |
||
71 |
version |
|
20005 | 72 |
^ '$Header$' |
7900 | 73 |
! ! |
17267
1d49121c1dc7
class: CharacterEncoderError
Claus Gittinger <cg@exept.de>
parents:
11296
diff
changeset
|
74 |