Exception: Platform::Api::BaseController::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- Platform::Api::BaseController::ApiError
show all
- Defined in:
- app/controllers/platform/api/base_controller.rb
Instance Method Summary
collapse
Instance Method Details
#init_cause(cause) ⇒ Object
36
37
38
39
|
# File 'app/controllers/platform/api/base_controller.rb', line 36
def init_cause(cause)
@cause = cause
self
end
|
40
41
42
|
# File 'app/controllers/platform/api/base_controller.rb', line 40
def message
@cause.try(:message) || super
end
|
33
34
35
|
# File 'app/controllers/platform/api/base_controller.rb', line 33
def status
@status ||= self.class.name.split('::').last.sub('Error','').underscore.to_sym
end
|