diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2016-12-10 06:20:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-10 06:20:34 -0500 |
commit | 2e8dad6318f06d2b41be3b3dd50b8bb112d2d200 (patch) | |
tree | bdd4d7da0d2b5aba523fe9bafc9138333882876e /activerecord/lib/active_record/errors.rb | |
parent | 5a5474325f38d892f182fef479ed0ee4e8835cfa (diff) | |
parent | 49edce37f92b1dcad4b67b3eb35922e7cec88726 (diff) | |
download | rails-2e8dad6318f06d2b41be3b3dd50b8bb112d2d200.tar.gz rails-2e8dad6318f06d2b41be3b3dd50b8bb112d2d200.tar.bz2 rails-2e8dad6318f06d2b41be3b3dd50b8bb112d2d200.zip |
Merge pull request #25227 from kamipo/numeric_value_out_of_range
Translate numeric value out of range to the specific exception
Diffstat (limited to 'activerecord/lib/active_record/errors.rb')
-rw-r--r-- | activerecord/lib/active_record/errors.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/errors.rb b/activerecord/lib/active_record/errors.rb index 507615a222..c812a05101 100644 --- a/activerecord/lib/active_record/errors.rb +++ b/activerecord/lib/active_record/errors.rb @@ -159,6 +159,10 @@ module ActiveRecord class ValueTooLong < StatementInvalid end + # Raised when values that executed are out of range. + class RangeError < StatementInvalid + end + # Raised when number of bind variables in statement given to +:condition+ key # (for example, when using {ActiveRecord::Base.find}[rdoc-ref:FinderMethods#find] method) # does not match number of expected values supplied. |