mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 03:27:52 +00:00
18 lines
217 B
Ruby
18 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
|