Chatwoot/lib/custom_exceptions/base.rb
2020-09-08 11:24:08 +05:30

18 lines
229 B
Ruby

# 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