Module: Fanforce::Errors
- Defined in:
- lib/fanforce/errors/errors.rb,
lib/fanforce/errors/version.rb
Constant Summary collapse
- BadRequest =
Fanforce::Error::BadRequest
Fanforce::Error::Unauthorized
- Forbidden =
Fanforce::Error::Forbidden
- NotFound =
Fanforce::Error::NotFound
- RequestFailed =
Fanforce::Error::RequestFailed
- InternalError =
Fanforce::Error::InternalError
- WebhookFailed =
Fanforce::Error::WebhookFailed
- AddonFailed =
Fanforce::Error::AddonFailed
- VERSION =
'0.1.4'
Class Method Summary collapse
Class Method Details
.format_admin_details(e, errors = [], additional_options = {}) ⇒ Object
150 151 152 153 154 155 |
# File 'lib/fanforce/errors/errors.rb', line 150 def self.format_admin_details(e, errors=[], ={}) admin_details = {error_class: e.class.name, public_response: errors} admin_details[:curl_command] = e.curl_command if e.respond_to?(:curl_command) admin_details[:raw_message] = e. admin_details.merge() end |
.included(base) ⇒ Object
139 |
# File 'lib/fanforce/errors/errors.rb', line 139 def self.included(base) base.extend(self) end |