Ticket #26088

Introduce exception classes represent invalid Unicode values

Open Date: 2011-08-21 17:50 Last Update: 2011-09-25 22:18

Reporter:
Owner:
Type:
Status:
Closed
Component:
MileStone:
Priority:
7
Severity:
5 - Medium
Resolution:
Fixed
File:
None

Details

Error handling when faced invalid Unicode value is not integrated on each classes and functions (some use replacement character, some use std.invalid_argument).

We introduce the following two exception classes represent invalid Unicode value:

  • InvalidCodePointException -- The code point is not in U+0000..U+10FFFF (can't expressed by UTF-8 and ITF-16)
  • InvalidScalarValueException -- The code point is in U+0000..U+10FFFF but single surrogate (can't expressed by UTF-16)

We add these classes into ascension.text namespace and change existing stuffs to use them.

Ticket History (3/3 Histories)

2011-08-21 17:50 Updated by: exeal
  • New Ticket "Introduce exception classes represent invalid Unicode values" created
2011-08-27 21:20 Updated by: exeal
Comment

Existing kernel.fileio.MalformedInputException exception class should be moved to text namespace.

2011-09-25 22:18 Updated by: exeal
  • Resolution Update from None to Fixed
  • Status Update from Open to Closed
  • Ticket Close date is changed to 2011-09-25 22:18

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login