Skip to content

Commit

Permalink
Raise it is
Browse files Browse the repository at this point in the history
  • Loading branch information
hakanensari committed Mar 3, 2016
1 parent d340089 commit 4501159
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/mws/fulfillment_outbound_shipment/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def list_all_fulfillment_orders_by_next_token(next_token)
# Returns delivery tracking information for a package in an outbound
# shipment for a Multi-Channel Fulfillment order
def get_package_tracking_details
fail NotImplementedError
raise NotImplementedError
end

# Requests that Amazon stop attempting to fulfill an existing fulfillment
Expand Down
2 changes: 1 addition & 1 deletion lib/mws/reports/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def get_report_schedule_list(*report_type_list)
# @see http://docs.developer.amazonservices.com/en_US/reports/Reports_GetReportScheduleListByNextToken.html
# @raise [NotImplementedError]
def get_report_schedule_list_by_next_token(*)
fail NotImplementedError
raise NotImplementedError
end

# Counts scheduled reports
Expand Down
2 changes: 1 addition & 1 deletion lib/peddler/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def inherited(base)
end
end

@error_handler = proc { fail }
@error_handler = proc { raise }

# Creates a new client instance
#
Expand Down
4 changes: 2 additions & 2 deletions lib/peddler/marketplace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Marketplace
attr_reader :id

def initialize(id)
@id = id || fail(BadId, 'missing MarketplaceId')
@id = id || raise(BadId, 'missing MarketplaceId')
end

def host
Expand All @@ -44,7 +44,7 @@ def encoding
private

def find_host
HOSTS.fetch(id) { fail BadId, %("#{id}" is not a valid MarketplaceId) }
HOSTS.fetch(id) { raise BadId, %("#{id}" is not a valid MarketplaceId) }
end

def japanese?
Expand Down
2 changes: 1 addition & 1 deletion lib/peddler/xml_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def valid?
private

def find_data
fail NotImplementedError
raise NotImplementedError
end
end
end

0 comments on commit 4501159

Please sign in to comment.