Exception: MediaTypeNotFoundError

Inherits:
StandardDistorteDError show all
Defined in:
lib/distorted/error_code.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ MediaTypeNotFoundError

Returns a new instance of MediaTypeNotFoundError.



39
40
41
42
# File 'lib/distorted/error_code.rb', line 39

def initialize(name)
  super
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



38
39
40
# File 'lib/distorted/error_code.rb', line 38

def name
  @name
end

Instance Method Details

#messageObject



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

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