Fix issue on manually set errorData
Fix issue removing custom class
Merge pull request #4 from andresmoschini/custom-error-class

Fix issue on manually set errorData