Page MenuHomePhabricator

Throw better exceptions from `PhutilJSONParser`.
ClosedPublic

Authored by joshuaspence on Jun 18 2014, 7:02 PM.
Tags
None
Referenced Files
F15344134: D9624.diff
Mon, Mar 10, 2:40 AM
Unknown Object (File)
Thu, Feb 27, 10:18 AM
Unknown Object (File)
Tue, Feb 25, 5:00 PM
Unknown Object (File)
Fri, Feb 21, 10:22 PM
Unknown Object (File)
Tue, Feb 18, 9:55 PM
Unknown Object (File)
Feb 9 2025, 1:43 PM
Unknown Object (File)
Feb 9 2025, 1:43 PM
Unknown Object (File)
Feb 9 2025, 1:43 PM
Subscribers

Details

Summary

Ref T5297. Retrieve error context from JsonLintParsingException to provide a better exception message.

Depends on D9623.

Test Plan

Wrote and executed unit tests.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

joshuaspence retitled this revision from to Throw better exceptions from `PhutilJSONParser`..
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.

I'm sure I can get a column number in here as well

joshuaspence edited edge metadata.
  • Better error messages
epriestley edited edge metadata.
This revision is now accepted and ready to land.Jun 19 2014, 6:01 PM
joshuaspence edited edge metadata.

I changed the way in which parameters are passed to the constructor, does this fly with you?

epriestley edited edge metadata.

Yep, looks good to me.

src/parser/PhutilJSONParser.php
25–30

(Extra indent.)

This revision is now accepted and ready to land.Jun 20 2014, 1:51 AM