mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 12:08:01 +00:00
Co-authored-by: Subin <subinthattaparambil@gmail.com> Co-authored-by: Manoj <manojmj92@gmail.com> Co-authored-by: Nithin <webofnithin@gmail.com>
18 lines
188 B
Ruby
18 lines
188 B
Ruby
class CustomExceptions::Base < ::StandardError
|
|
|
|
def to_hash
|
|
{
|
|
message: message
|
|
}
|
|
end
|
|
|
|
def http_status
|
|
403
|
|
end
|
|
|
|
def initialize(data)
|
|
@data = data
|
|
end
|
|
|
|
end
|