Page MenuHomePhabricator

Throw better exceptions from `PhutilJSONParser`.
ClosedPublic

Authored by joshuaspence on Jun 18 2014, 7:02 PM.
Tags
None
Referenced Files
F14393867: D9624.id23106.diff
Sun, Dec 22, 1:10 AM
F14393602: D9624.diff
Sun, Dec 22, 12:17 AM
Unknown Object (File)
Tue, Dec 10, 3:23 PM
Unknown Object (File)
Sun, Dec 8, 5:05 PM
Unknown Object (File)
Tue, Dec 3, 3:58 AM
Unknown Object (File)
Mon, Dec 2, 11:54 AM
Unknown Object (File)
Fri, Nov 29, 7:33 PM
Unknown Object (File)
Thu, Nov 28, 8:59 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 1237
Build 1237: [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