Exception: MediaTypeNotFoundError

Inherits:
DistorteDError show all
Defined in:
lib/distorted-floor/error_code.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ MediaTypeNotFoundError

Returns a new instance of MediaTypeNotFoundError.



44
45
46
47
# File 'lib/distorted-floor/error_code.rb', line 44

def initialize(name)
  super
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



43
44
45
# File 'lib/distorted-floor/error_code.rb', line 43

def name
  @name
end

Instance Method Details

#messageObject



49
50
51
# File 'lib/distorted-floor/error_code.rb', line 49

def message
  "Failed to detect media type for #{name}"
end