Specify errors types

Added getErrors function to retrieve validations errors.
Merge pull request #2 from PierreRambaud/master

Specify errors types