Module: MessageStore::Postgres::Get::Condition

Defined in:
lib/message_store/postgres/get/condition.rb

Constant Summary collapse

Error =
Class.new(RuntimeError)

Class Method Summary collapse

Class Method Details

.error(error_message) ⇒ Object



7
8
9
10
11
# File 'lib/message_store/postgres/get/condition.rb', line 7

def self.error(error_message)
  if error_message.start_with?('Retrieval with SQL condition is not activated')
    Get::Condition::Error.new(error_message)
  end
end