Added exceptions to post repository and updated tests

Test Plan: unit

Reviewers: nickc

Differential Revision: http://phab.nickc.io/D15