Exception: BacklogKit::Error
- Inherits:
-
StandardError
- Object
- StandardError
- BacklogKit::Error
- Defined in:
- lib/backlog_kit/error.rb
Direct Known Subclasses
AccessDeniedError, AuthenticationError, ConnectionError, InternalError, InvalidRequestError, LicenceError, LicenceExpiredError, NoResourceError, ResourceOverflowError, SpaceOverCapacityError, TooLargeFileError, UnauthorizedOperationError, UnexpectedError
Class Method Summary collapse
Class Method Details
.build_error_message(response, index) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/backlog_kit/error.rb', line 3 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 |