Page MenuHomePhabricator

Add a linter rule to prevent exceptions from being thrown in a toString method
ClosedPublic

Authored by joshuaspence on May 15 2015, 6:19 AM.
Tags
None
Referenced Files
F19153333: D12854.diff
Thu, Dec 11, 9:04 AM
F19058934: D12854.diff
Sat, Nov 29, 4:00 AM
F19052407: D12854.id31001.diff
Fri, Nov 28, 5:05 AM
F19032047: D12854.id31001.diff
Tue, Nov 25, 4:10 AM
F18944332: D12854.id31002.diff
Nov 11 2025, 3:49 PM
F18854426: D12854.id30924.diff
Nov 1 2025, 12:13 AM
F18834198: D12854.id31001.diff
Oct 26 2025, 7:12 AM
F18833515: D12854.id.diff
Oct 26 2025, 4:07 AM
Subscribers

Details

Summary

Fixes T8207. It is not possible to throw an exception from within the __toString() method. Add a linter rule to prevent this from happening.

Test Plan

Added test cases.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Add a linter rule to prevent exceptions from being thrown in a toString method.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.May 17 2015, 1:03 PM
This revision was automatically updated to reflect the committed changes.