Exception: Motion::InvalidSerializedStateError

Inherits:
SerializedComponentError show all
Defined in:
lib/motion/errors.rb

Instance Method Summary collapse

Constructor Details

#initializeInvalidSerializedStateError

Returns a new instance of InvalidSerializedStateError.



94
95
96
97
98
99
100
101
102
# File 'lib/motion/errors.rb', line 94

def initialize
  super(
    "The serialized state of your component is not valid.\n" \
    "\n" \
    "Hint: Ensure that you have not tampered with the contents of data " \
    "attributes added by Motion in the DOM or changed the value of " \
    "`Motion.config.secret`."
  )
end