defining an error handling micro-system