Skip to content

Commit 0022e6f

Browse files
committed
chore: remove error model
1 parent 11bea6d commit 0022e6f

4 files changed

Lines changed: 2 additions & 14 deletions

File tree

lib/easypost/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def initialize(api_key:, read_timeout: 60, open_timeout: 30, api_base: 'https://
7676
# @param endpoint [String] URI path of the resource
7777
# @param params [Object] (nil) object to be used as the request parameters
7878
# @param api_version [String] the version of API to hit
79-
# @raise [EasyPost::Error] if the response has a non-2xx status code
79+
# @raise [EasyPost::EasyPostError] if the response has a non-2xx status code
8080
# @return [Hash] JSON object parsed from the response body
8181
def make_request(
8282
method,

lib/easypost/connection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# @param path [String] URI path of the resource
88
# @param requested_api_key [String] ({EasyPost.api_key}) key set Authorization header.
99
# @param body [String] (nil) body of the request
10-
# @raise [EasyPost::Error] if the response has a non-2xx status code
10+
# @raise [EasyPost::EasyPostError] if the response has a non-2xx status code
1111
# @return [Hash] JSON object parsed from the response body
1212
def call(method, path, api_key = nil, body = nil)
1313
raise EasyPost::Errors::MissingParameterError.new('api_key') if api_key.nil?

lib/easypost/models.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ module EasyPost::Models
1414
require_relative 'models/customs_info'
1515
require_relative 'models/customs_item'
1616
require_relative 'models/end_shipper'
17-
require_relative 'models/error'
1817
require_relative 'models/event'
1918
require_relative 'models/insurance'
2019
require_relative 'models/order'

lib/easypost/models/error.rb

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)