Exception: PlatformMismatchError

Inherits:
AppError
  • Object
show all
Defined in:
lib/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(platform) ⇒ PlatformMismatchError

Returns a new instance of PlatformMismatchError.



74
75
76
# File 'lib/errors.rb', line 74

def initialize(platform)
  @platform = platform
end

Instance Method Details

#to_sObject



78
79
80
81
# File 'lib/errors.rb', line 78

def to_s
  platforms = PLATFORMS.map(&:to_s).join(", ")
  "Platform '#{@platform}' doesn't match any of: #{platforms}"
end