Add NewErrorObject
Merge pull request #6 from jszwec/master

Add NewErrorObject