create real errors
Merge pull request #13 from Raynos/error-objects

create real errors