Fix exception type for default setter