added getOrException(e) method