Exception: Intelligence::AdapterError

Inherits:
Error
  • Object
show all
Defined in:
lib/intelligence/adapter_error.rb

Direct Known Subclasses

InvalidContentError, UnsupportedContentError

Instance Method Summary collapse

Constructor Details

#initialize(adapter_type, text) ⇒ AdapterError

Returns a new instance of AdapterError.



3
4
5
6
# File 'lib/intelligence/adapter_error.rb', line 3

def initialize( adapter_type, text )
  adapter_class_name = adapter_type.to_s.split( '_' ).map( &:capitalize ).join
  super( "The #{adapter_class_name} #{text}." )
end