Exception: BacklogKit::Error
- Inherits:
-
StandardError
- Object
- StandardError
- BacklogKit::Error
- Defined in:
- lib/backlog_kit/error.rb
Overview
Custom error class for rescuing from Backlog errors
Direct Known Subclasses
AccessDeniedError, AuthenticationError, ConnectionError, InternalError, InvalidRequestError, LicenceError, LicenceExpiredError, NoResourceError, ResourceOverflowError, SpaceOverCapacityError, TooLargeFileError, UnauthorizedOperationError, UnexpectedError
Class Method Summary collapse
-
.build_error_message(response, index) ⇒ String
Make a custom error message.
Class Method Details
.build_error_message(response, index) ⇒ String
Make a custom error message
11 12 13 14 15 16 17 |
# File 'lib/backlog_kit/error.rb', line 11 def self.(response, index) = "[ERROR #{index}] " += "#{self.name.demodulize} - #{response['message']} (CODE: #{response['code']})" more_info = response['moreInfo'].to_s += " (MORE INFO: #{more_info})" unless more_info.empty? end |