Exception: Sqreen::Actions::UnknownActionType

Inherits:
Exception
  • Object
show all
Defined in:
lib/sqreen/actions/unknown_action_type.rb

Overview

Exception for when an unknown action type is gotten from the server

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Exception

#log_message

Constructor Details

#initialize(action_type) ⇒ UnknownActionType

Returns a new instance of UnknownActionType.



14
15
16
17
# File 'lib/sqreen/actions/unknown_action_type.rb', line 14

def initialize(action_type)
  super("no such action type: #{action_type}. Must be one of #{Base.known_types}")
  @action_type = action_type
end

Instance Attribute Details

#action_typeObject (readonly)

Returns the value of attribute action_type.



13
14
15
# File 'lib/sqreen/actions/unknown_action_type.rb', line 13

def action_type
  @action_type
end