Chatwoot/lib/custom_exceptions/base.rb
2019-10-20 14:17:26 +05:30

17 lines
217 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
end
end