Exception: CassandraMigrations::Errors::CassandraError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cassandra_migrations/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg) ⇒ CassandraError

Returns a new instance of CassandraError.



9
10
11
12
13
14
15
16
# File 'lib/cassandra_migrations/errors.rb', line 9

def initialize(msg)
  # Makes all exception messages red
  if msg.frozen?
    super(msg.dup.red)
  else
    super(msg.red)
  end
end