raise newException(NilAccessError,"pop on an empty set")
gives the Warning: See corresponding Defect; NilAccessError is deprecated [Deprecated]
but there is no notice nor an alternative in the current docs. I just chose it because the name fits here.