Exception: Lotr::Sdk::Exception::MovieNotSupportedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/lotr/sdk/exception/movie_not_supported_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(supported_movies) ⇒ MovieNotSupportedError

Returns a new instance of MovieNotSupportedError.



7
8
9
10
# File 'lib/lotr/sdk/exception/movie_not_supported_error.rb', line 7

def initialize(supported_movies)
  msg = "This movie ID is not supported. Supported movies are: #{supported_movies.join(" ")}"
  super(msg)
end