Page MenuHomePhabricator

Throw better exceptions from `PhutilJSONParser`.
ClosedPublic

Authored by joshuaspence on Jun 18 2014, 7:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 2, 11:54 AM
Unknown Object (File)
Wed, May 1, 5:22 AM
Unknown Object (File)
Wed, May 1, 5:22 AM
Unknown Object (File)
Wed, May 1, 5:22 AM
Unknown Object (File)
Wed, May 1, 5:22 AM
Unknown Object (File)
Mon, Apr 29, 8:49 PM
Unknown Object (File)
Sat, Apr 20, 12:26 AM
Unknown Object (File)
Tue, Apr 16, 8:54 AM
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