class ActiveRecord::ExclusionViolation

Raised when a record cannot be inserted or updated because it would violate an exclusion constraint.