Exception: Streama::Errors::InvalidData

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

Overview

This error is raised when an object isn’t defined as an actor, object or target

Example:

InvalidField.new('field_name')

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ InvalidData

Returns a new instance of InvalidData.



20
21
22
# File 'lib/streama/errors.rb', line 20

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

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



18
19
20
# File 'lib/streama/errors.rb', line 18

def message
  @message
end