blob: 1d227ca86b1e9f9b86660893bb262b8f3b71fb43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
module SolidusSubscriptions
class UserMismatchError < StandardError
def initialize(installments)
@installments = installments
end
def to_s
<<-MSG.squish
Installments must have the same user to be processed as a consolidated
installment. Could not process installments:
#{@installments.map(&:id).join(', ')}
MSG
end
end
end
|