author | Claus Gittinger <cg@exept.de> |
Wed, 26 Jun 2019 22:06:12 +0200 | |
changeset 24369 | e796791ea838 |
parent 22435 | d7b92e627ed6 |
permissions | -rw-r--r-- |
22435 | 1 |
"{ Encoding: utf8 }" |
2 |
||
7908 | 3 |
" |
4 |
COPYRIGHT (c) 2004 by eXept Software AG |
|
5 |
All Rights Reserved |
|
6 |
||
7 |
This software is furnished under a license and may be used |
|
8 |
only in accordance with the terms of that license and with the |
|
9 |
inclusion of the above copyright notice. This software may not |
|
10 |
be provided or otherwise made available to, or used by, any |
|
11 |
other person. No title to or ownership of the software is |
|
12 |
hereby transferred. |
|
13 |
" |
|
7900 | 14 |
"{ Package: 'stx:libbasic' }" |
15 |
||
17267
1d49121c1dc7
class: CharacterEncoderError
Claus Gittinger <cg@exept.de>
parents:
11296
diff
changeset
|
16 |
"{ NameSpace: Smalltalk }" |
1d49121c1dc7
class: CharacterEncoderError
Claus Gittinger <cg@exept.de>
parents:
11296
diff
changeset
|
17 |
|
7930 | 18 |
ConversionError subclass:#CharacterEncoderError |
7907 | 19 |
instanceVariableNames:'defaultValue' |
7900 | 20 |
classVariableNames:'' |
21 |
poolDictionaries:'' |
|
22 |
category:'Collections-Text-Encodings' |
|
23 |
! |
|
24 |
||
7908 | 25 |
!CharacterEncoderError class methodsFor:'documentation'! |
26 |
||
27 |
copyright |
|
28 |
" |
|
29 |
COPYRIGHT (c) 2004 by eXept Software AG |
|
30 |
All Rights Reserved |
|
31 |
||
32 |
This software is furnished under a license and may be used |
|
33 |
only in accordance with the terms of that license and with the |
|
34 |
inclusion of the above copyright notice. This software may not |
|
35 |
be provided or otherwise made available to, or used by, any |
|
36 |
other person. No title to or ownership of the software is |
|
37 |
hereby transferred. |
|
38 |
" |
|
39 |
! |
|
40 |
||
41 |
documentation |
|
42 |
" |
|
43 |
raised if no encoding/decoding exists for some codePoint |
|
44 |
while converting |
|
20005 | 45 |
(for example, when converting unicode to ISO-8859-x and vice versa). |
7908 | 46 |
" |
47 |
! ! |
|
7900 | 48 |
|
22435 | 49 |
!CharacterEncoderError class methodsFor:'initialization'! |
50 |
||
51 |
initialize |
|
52 |
NotifierString := 'Missing character encoding for codepoint'. |
|
53 |
||
54 |
"Created: / 16-01-2018 / 18:53:56 / stefan" |
|
55 |
! ! |
|
56 |
||
7907 | 57 |
!CharacterEncoderError methodsFor:'accessing'! |
58 |
||
59 |
defaultValue |
|
8046 | 60 |
^ defaultValue ? 16rFFFF "/ unicode invalid character |
7907 | 61 |
! |
62 |
||
63 |
defaultValue:something |
|
64 |
defaultValue := something. |
|
65 |
! ! |
|
66 |
||
8046 | 67 |
!CharacterEncoderError methodsFor:'queries'! |
68 |
||
11296 | 69 |
defaultResumeValue |
17267
1d49121c1dc7
class: CharacterEncoderError
Claus Gittinger <cg@exept.de>
parents:
11296
diff
changeset
|
70 |
"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
|
71 |
|
11296 | 72 |
^ self defaultValue |
73 |
! |
|
74 |
||
8046 | 75 |
isInvalidEncodingError |
76 |
^ false |
|
77 |
! ! |
|
78 |
||
7900 | 79 |
!CharacterEncoderError class methodsFor:'documentation'! |
80 |
||
81 |
version |
|
20005 | 82 |
^ '$Header$' |
7900 | 83 |
! ! |
17267
1d49121c1dc7
class: CharacterEncoderError
Claus Gittinger <cg@exept.de>
parents:
11296
diff
changeset
|
84 |
|
22435 | 85 |
|
86 |
CharacterEncoderError initialize! |