Chatwoot/lib/custom_exceptions/report.rb

34 lines
632 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module CustomExceptions::Report
class InvalidIdentity < CustomExceptions::Base
def message
2019-10-20 08:47:26 +00:00
'Invalid type'
end
end
class IdentityNotFound < CustomExceptions::Base
def message
2019-10-20 08:47:26 +00:00
'Type with the specified id not found'
end
end
class MetricNotFound < CustomExceptions::Base
def message
2019-10-20 08:47:26 +00:00
'Metric for the specified type not found'
end
end
class InvalidStartTime < CustomExceptions::Base
def message
2019-10-20 08:47:26 +00:00
'Invalid start_time'
end
end
class InvalidEndTime < CustomExceptions::Base
def message
2019-10-20 08:47:26 +00:00
'Invalid end_time'
end
end
end