Exception: ZeroRuby::TransactNotCalledError

Inherits:
Error
  • Object
show all
Defined in:
lib/zero_ruby/errors.rb

Overview

Raised when a mutation doesn’t call the transact block. All mutations MUST call transact.call { … } to wrap their database operations.

Instance Attribute Summary

Attributes inherited from Error

#details

Instance Method Summary collapse

Methods inherited from Error

#error_type

Constructor Details

#initializeTransactNotCalledError

Returns a new instance of TransactNotCalledError.



110
111
112
# File 'lib/zero_ruby/errors.rb', line 110

def initialize
  super("Mutation must call transact block")
end