app: add an error module for custom exceptions.