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)
Fri, Nov 22, 2:06 AM
Unknown Object (File)
Thu, Oct 31, 6:23 AM
Unknown Object (File)
Oct 23 2024, 9:48 AM
Unknown Object (File)
Oct 21 2024, 12:48 PM
Unknown Object (File)
Oct 20 2024, 5:37 PM
Unknown Object (File)
Oct 20 2024, 5:12 PM
Unknown Object (File)
Oct 20 2024, 5:02 PM
Unknown Object (File)
Oct 20 2024, 5:01 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
Branch
json3
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 1232
Build 1232: [Placeholder Plan] Wait for 30 Seconds

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
29–34

(Extra indent.)

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