Chatwoot/lib/custom_exceptions/base.rb

18 lines
188 B
Ruby
Raw Normal View History

class CustomExceptions::Base < ::StandardError
def to_hash
{
message: message
}
end
def http_status
403
end
def initialize(data)
@data = data
end
end