if I recall, $q#resolve() will actually do this exception handling stuff for you