mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
Initial Commit
Co-authored-by: Subin <subinthattaparambil@gmail.com> Co-authored-by: Manoj <manojmj92@gmail.com> Co-authored-by: Nithin <webofnithin@gmail.com>
This commit is contained in:
17
lib/custom_exceptions/base.rb
Normal file
17
lib/custom_exceptions/base.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
class CustomExceptions::Base < ::StandardError
|
||||
|
||||
def to_hash
|
||||
{
|
||||
message: message
|
||||
}
|
||||
end
|
||||
|
||||
def http_status
|
||||
403
|
||||
end
|
||||
|
||||
def initialize(data)
|
||||
@data = data
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user