Method: Whatconverts::ErrorChecker#error_if_appropriate

Defined in:
lib/whatconverts/error_checker.rb

#error_if_appropriateObject



10
11
12
13
# File 'lib/whatconverts/error_checker.rb', line 10

def error_if_appropriate
  return AuthError.new(response_body) if is_auth_error?
  return ApiError.new(response_body) if is_error?
end