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

@@ -2,8 +2,8 @@ require 'digest/sha1'
require 'danbooru/has_bit_flags'
class User < ApplicationRecord
class Error < Exception; end
class PrivilegeError < Exception; end
class Error < StandardError; end
class PrivilegeError < StandardError; end
module Levels
ANONYMOUS = 0