class EasyPost::Errors::ExternalApiError
Attributes
Public Class Methods
Source
# File lib/easypost/errors/api/external_api_error.rb, line 6 def initialize(message, status_code = nil) super message @status_code = status_code end
Calls superclass method
Public Instance Methods
Source
# File lib/easypost/errors/api/external_api_error.rb, line 11 def pretty_print if status_code.nil? return message end "(#{status_code}): #{message}" end