ensureError is works for inheritance classes, now
Merge pull request #13 from ZooBestik/master

Method `ensureError` works incorrectly for errors inherited from Terror