You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# For now, don't display module name, maybe want it if this changes to StringEncoders
35
14
const modulename =""
36
15
37
16
# specified encodings are not supported
38
17
type InvalidEncodingError <:StringEncodingError
39
-
err::GeneralError
40
-
InvalidEncodingError(args...) =new(GeneralError(modulename, "Conversion from <<1>> to <<2>> not supported by iconv implementation, check that specified encodings are correct", args...))
18
+
mod::ByteString
19
+
msg::ByteString
20
+
args
21
+
InvalidEncodingError(from, to) =new(modulename, "Conversion from <<1>> to <<2>> not supported by iconv implementation, check that specified encodings are correct", (from, to))
41
22
end
42
23
43
24
# Encountered invalid byte sequence
44
25
type InvalidSequenceError <:StringEncodingError
45
-
err::GeneralError
46
-
InvalidSequenceError(args...) =new(GeneralError(modulename, "Byte sequence 0x<<1>> is invalid in source encoding or cannot be represented in target encoding", args...))
26
+
mod::ByteString
27
+
msg::ByteString
28
+
args
29
+
InvalidSequenceError(seq) =new(modulename, "Byte sequence 0x<<1>> is invalid in source encoding or cannot be represented in target encoding", (seq,))
47
30
end
48
31
49
32
# Input ended with incomplete byte sequence
50
33
type IncompleteSequenceError <:StringEncodingError
51
-
err::GeneralError
34
+
mod::ByteString
35
+
msg::ByteString
36
+
args
52
37
IncompleteSequenceError() =
53
-
new(GeneralError(modulename, "Incomplete byte sequence at end of input"))
38
+
new(modulename, "Incomplete byte sequence at end of input", ())
0 commit comments