异常:Mongoid::Errors::TransactionError
- 继承:
-
MongoidError
- 对象
- StandardError
- MongoidError
- Mongoid::Errors::TransactionError
- 定义于:
- lib/mongoid/errors/transaction_error.rb
Overview
当ACID 事务由于意外错误而失败时,会引发此错误。
常量摘要
从MongoidError继承的常量
实例属性摘要
从MongoidError继承的属性
实例方法摘要折叠
-
#initialize(error) ⇒ TransactionError
构造函数
创建异常。
从MongoidError继承的方法
构造函数详情
#initialize(error) ⇒ TransactionError
创建异常。
15 16 17 18 19 20 21 22 |
# File 'lib/mongoid/errors/transaction_error.rb', line 15 def 初始化(错误) 超( ( 'transaction_error', { 错误: " #{ error . class } : #{ error . } " } ) ) end |