Parse a broken value, expecting an IonException. @param text can be anything.
(String text)
| 525 | * @param text can be anything. |
| 526 | */ |
| 527 | public void badValue(String text) |
| 528 | { |
| 529 | try |
| 530 | { |
| 531 | oneValue(text); |
| 532 | fail("Expected IonException"); |
| 533 | } |
| 534 | catch (IonException e) |
| 535 | { |
| 536 | // TODO use a tighter exception type. SyntaxError? |
| 537 | // This line is here solely to allow a breakpoint to be set. |
| 538 | @SuppressWarnings("unused") |
| 539 | String msg = e.getMessage(); |
| 540 | } |
| 541 | } |
| 542 | |
| 543 | |
| 544 | // TODO add to IonSystem()? |
no test coverage detected