lib/workos/errors.rb in workos-2.1.1 vs lib/workos/errors.rb in workos-2.2.0
- old
+ new
@@ -15,17 +15,19 @@
message: T.nilable(String),
error: T.nilable(String),
error_description: T.nilable(String),
http_status: T.nilable(Integer),
request_id: T.nilable(String),
+ code: T.nilable(String),
).void
end
- def initialize(message: nil, error: nil, error_description: nil, http_status: nil, request_id: nil)
+ def initialize(message: nil, error: nil, error_description: nil, http_status: nil, request_id: nil, code: nil)
@message = message
@error = error
@error_description = error_description
@http_status = http_status
@request_id = request_id
+ @code = code
end
sig { returns(String) }
def to_s
status_string = @http_status.nil? ? '' : "Status #{@http_status}, "