Inherit errors from StandardError instead of Exception.

This commit is contained in:
evazion
2020-01-11 19:07:28 -06:00
parent aff3d3b18f
commit 153a8339ab
27 changed files with 35 additions and 32 deletions

View File

@@ -1,12 +1,12 @@
require 'danbooru/has_bit_flags'
class Post < ApplicationRecord
class ApprovalError < Exception; end
class DisapprovalError < Exception; end
class RevertError < Exception; end
class SearchError < Exception; end
class DeletionError < Exception; end
class TimeoutError < Exception; end
class ApprovalError < StandardError; end
class DisapprovalError < StandardError; end
class RevertError < StandardError; end
class SearchError < StandardError; end
class DeletionError < StandardError; end
class TimeoutError < StandardError; end
# Tags to copy when copying notes.
NOTE_COPY_TAGS = %w[translated partially_translated check_translation translation_request reverse_translation]