Page MenuHomePhabricator

Throw better exceptions from `PhutilJSONParser`.
ClosedPublic

Authored by joshuaspence on Jun 18 2014, 7:02 PM.
Tags
None
Referenced Files
F14752923: D9624.id23106.diff
Tue, Jan 21, 1:56 PM
F14752901: D9624.id23084.diff
Tue, Jan 21, 1:55 PM
F14749914: D9624.id.diff
Tue, Jan 21, 11:37 AM
Unknown Object (File)
Mon, Jan 20, 2:18 PM
Unknown Object (File)
Fri, Jan 17, 11:45 AM
Unknown Object (File)
Wed, Jan 15, 7:25 AM
Unknown Object (File)
Sat, Jan 11, 4:41 PM
Unknown Object (File)
Tue, Dec 24, 3:53 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