This method can be called at any time in order to determine the identity of the last error that occurred. This method is typically called after calling a method that returned a failure.