Restructure omni services and add Chatwoot research snapshot
This commit is contained in:
18
research/chatwoot/lib/custom_exceptions/base.rb
Normal file
18
research/chatwoot/lib/custom_exceptions/base.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CustomExceptions::Base < StandardError
|
||||
def to_hash
|
||||
{
|
||||
message: message
|
||||
}
|
||||
end
|
||||
|
||||
def http_status
|
||||
403
|
||||
end
|
||||
|
||||
def initialize(data)
|
||||
@data = data
|
||||
super()
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user