Exception: EditInPlace::UnsupportedModeError

Inherits:
Error
  • Object
show all
Defined in:
lib/edit_in_place/unsupported_mode_error.rb

Overview

An error that occurs when a field is rendered with a mode that is does not support.

Since:

  • 0.1.0

Instance Method Summary collapse

Constructor Details

#initialize(mode) ⇒ UnsupportedModeError

Creates a new instance of EditInPlace::UnsupportedModeError with the given mode that caused the error.

Parameters:

  • mode (Symbol)

    the mode that caused the error.

Since:

  • 0.1.0


9
10
11
# File 'lib/edit_in_place/unsupported_mode_error.rb', line 9

def initialize(mode)
  super("The mode '#{mode}' is not supported by this field type!")
end