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