class ATM::TestPlanError
Attributes
message[R]
Public Class Methods
new(response)
click to toggle source
# File lib/atm_ruby/error_handeling/test_plan_error.rb, line 7 def initialize(response) @response = response @message = case @response.code when 401 then raise_401 when 404 then raise_404('No Test Plan has been found with the given key') when 500 then raise_500 end end