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 18 |
# File 'lib/mediainfo/errors.rb', line 11 def initialize(msg=nil) msg ||= "Input must be: \n" + "A video or xml file location." + "Example: '~/videos/test_video.mov' or '~/videos/test_video.xml' \n" + "A valid URL. Example: 'http://www.site.com/videofile.mov' \n" + "Or MediaInfo XML \n" super(msg) end |