Files
chatwoot/lib/custom_exceptions/base.rb
Akshay Birajdar a1452d7d89 Sprinkle frozen string literal & Indentation Fix (#150)
* Avoid extra string alocation as join will always return string

* Fix indentation

* Sprinkle frozen string literal true
2019-10-16 12:22:30 +05:30

20 lines
219 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