chatwoot/chatwoot

View on GitHub
lib/custom_exceptions/base.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# 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