aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/errors.rb
diff options
context:
space:
mode:
authorZachary Scott <e@zzak.io>2014-05-28 10:40:39 -0700
committerZachary Scott <e@zzak.io>2014-05-28 10:40:39 -0700
commitf3e14587a6385cf1419b1c665f2177264abc2e27 (patch)
tree3b1574a445c083fe287719c1a04ac669460866f7 /activerecord/lib/active_record/errors.rb
parent99873ca1ea98d73c73f8be60dfce0a54224f4ea8 (diff)
parentb1db6154b5bce3872b91459337d1cf5bc57c43e4 (diff)
downloadrails-f3e14587a6385cf1419b1c665f2177264abc2e27.tar.gz
rails-f3e14587a6385cf1419b1c665f2177264abc2e27.tar.bz2
rails-f3e14587a6385cf1419b1c665f2177264abc2e27.zip
Merge pull request #15380 from Gaurav2728/gaurav-transaction_isolation_error
Initial doc for TransactionIsolationError [ci skip]
Diffstat (limited to 'activerecord/lib/active_record/errors.rb')
-rw-r--r--activerecord/lib/active_record/errors.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/errors.rb b/activerecord/lib/active_record/errors.rb
index 71efbb8f93..e9364aeeef 100644
--- a/activerecord/lib/active_record/errors.rb
+++ b/activerecord/lib/active_record/errors.rb
@@ -217,6 +217,9 @@ module ActiveRecord
class ImmutableRelation < ActiveRecordError
end
+ # TransactionIsolationError will be raised if: The adapter does not support setting the isolation level;
+ # You are joining an existing open transaction; You are creating a nested (savepoint) transaction; The mysql,
+ # mysql2 and postgresql adapters support setting the transaction isolation level.
class TransactionIsolationError < ActiveRecordError
end
end