Implementations of error handling in imperative languages

  1. Return current store along with error value.