Exception: MediaInfo::BadInputError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- MediaInfo::BadInputError
- Defined in:
- lib/mediainfo/errors.rb
Instance Method Summary collapse
-
#initialize(msg = nil) ⇒ BadInputError
constructor
A new instance of BadInputError.
Constructor Details
#initialize(msg = nil) ⇒ BadInputError
Returns a new instance of BadInputError.
11 12 13 14 15 16 17 |
# File 'lib/mediainfo/errors.rb', line 11 def initialize(msg=nil) msg ||= "Input must be: \n" \ " - A video or xml file location: '~/videos/test_video.mov' or '~/videos/test_video.xml' \n" \ " - A valid URL: 'http://www.site.com/videofile.mov' \n" \ " - MediaInfo XML \n" super(msg) end |