lib/exception_hunter/error_creator.rb
# Creates an error with the given attributes and persists it to
# the database.
#
# @param [HTTP_TAG, WORKER_TAG, MANUAL_TAG] tag to append to the error if any
# @return [ExceptionHunter::Error, false] the error or false if it was not possible to create it
Creates an error with the given attributes and persists it to
the database.
Creates an error with the given attributes and persists it to the database .
def update_error_group(error_group, error, tag)
        error_group.error_class_name = error.class_name
        error_group.message = error.message
        error_group.tags << tag unless tag.nil?
        error_group.tags.uniq!
        error_group.save!
      end
def update_error_group ( error_group , error , tag ) error_group . error_class_name = error . class_name error_group . message = error . message error_group . tags << tag unless tag . nil? error_group . tags . uniq! error_group . save! end
Creates an error with the given attributes and persists it to
the database.
Creates an error with the given attributes and persists it to the database .
the error or false if it was not possible to create it
the error or false if it was not possible to create it
ExceptionHunter::Error, false
error_group
<not_specific>
error
<not_specific>
tag
<not_specific>
<not_specific>
tag to append to the error if any
tag to append to the error if any