chore(resource): use minErr to throw exception
chore(sanitize): use minErr to throw exception
feat(Angular): provide minErr as public property

This allows us to use minErr in other modules, such as resource and sanitize.