diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-01-26 15:58:18 +0100 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-01-26 15:58:18 +0100 |
commit | 9750da9cb7dc14309be38f98bc0b50c8bff9eb72 (patch) | |
tree | 8b2ce119a932b6b0b35555eeb551e8ecb6bd35bc /report/util.rb | |
parent | 3af7a871c60fb7d853edd348634d6603fccec101 (diff) |
adjust to new A&A for GET, remove old Report-Errorreporting
Diffstat (limited to 'report/util.rb')
-rw-r--r-- | report/util.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/report/util.rb b/report/util.rb index 9844fd8..ca5f3cc 100644 --- a/report/util.rb +++ b/report/util.rb @@ -75,10 +75,10 @@ module Reports::Util # def self.check_group_matching( grouped_objects, match_attributes ) - raise Reports::BadRequest.new("less then 2 groups, no matching possible") if grouped_objects.size<2 + raise OpenTox::BadRequestError.new("less then 2 groups, no matching possible") if grouped_objects.size<2 first_group = grouped_objects[0] other_groups = grouped_objects[1..-1].collect{ |g| g.collect{|o| o }} - other_groups.each{ |g| raise Reports::BadRequest.new("groups are not equally sized, matching impossible") if g.size != first_group.size } + other_groups.each{ |g| raise OpenTox::BadRequestError.new("groups are not equally sized, matching impossible") if g.size != first_group.size } first_group.each do |o| @@ -94,7 +94,7 @@ module Reports::Util break end end - raise Reports::BadRequest.new("no match found for "+inspect_attributes(o, match_attributes)) unless match + raise OpenTox::BadRequestError.new("no match found for "+inspect_attributes(o, match_attributes)) unless match end end end |