Changing exception types in HashTree