Basic dynamic error handling