class EditInPlace::InvalidFieldTypeError

An error that occurs when an object that cannot be parsed into a {FieldType} is used as one.

Public Class Methods

new(field_type) click to toggle source

Creates a new instance of {InvalidFieldTypeError} with the given field type that caused the error. @param field_type [object] the field type that caused the error; used in the error message.

Calls superclass method
# File lib/edit_in_place/invalid_field_type_error.rb, line 9
def initialize(field_type)
  super("'#{field_type.inspect}' is not a valid field type!")
end