We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bee7fd commit 93b7f7aCopy full SHA for 93b7f7a
1 file changed
lib/easypost/services/report.rb
@@ -6,7 +6,7 @@ class EasyPost::Services::Report < EasyPost::Services::Service
6
# Create a Report
7
def create(params = {})
8
unless params[:type]
9
- raise ArgumentError, "Missing 'type' parameter in params" # TODO: replace the error in the error-handling overhaul PR
+ raise raise EasyPost::Errors::MISSING_REQUIRED_PARAMETER.new('type')
10
end
11
12
type = params.delete(:type)
@@ -26,7 +26,7 @@ def retrieve(id)
26
# Retrieve all Report objects
27
def all(params = {})
28
29
30
31
32
0 commit comments