Exception: Streama::Errors::InvalidField

Inherits:
StreamaError
  • Object
show all
Defined in:
lib/streama/errors.rb

Overview

This error is raised when trying to store a field that doesn’t exist

Example:

InvalidField.new('field_name')

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ InvalidField

Returns a new instance of InvalidField.



34
35
36
# File 'lib/streama/errors.rb', line 34

def initialize message
  @message = "Invalid Field: #{message}"
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



32
33
34
# File 'lib/streama/errors.rb', line 32

def message
  @message
end