Expose PartialResultError

Hello @nicks, 

Please review the following commits I made in branch 'xiao-expose-PartialResultError'.

6611d62e3ccd7b7786fda5720be0bceea10b9e65 (2014-01-27 14:04:24 -0800)
Expose PartialResultError

R=@nicks