Another class for combining return code and exception based programming