Class: RazorRisk::Razor::Connectivity::Razor3::RazorRequester::RequestFailedException

Inherits:
Exception show all
Defined in:
lib/razor_risk/razor/connectivity/razor_3/razor_requester.rb

Overview

Exception thrown when request fails

Direct Known Subclasses

InvalidCredentialsException

Instance Attribute Summary collapse

Attributes inherited from Exceptions::ConnectivityException

#options

Instance Method Summary collapse

Methods inherited from Exceptions::ConnectivityException

new

Constructor Details

#initialize(message, exit_status, razor_code, contingent_report, **options) ⇒ RequestFailedException

Returns a new instance of RequestFailedException.



122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# File 'lib/razor_risk/razor/connectivity/razor_3/razor_requester.rb', line 122

def initialize message, exit_status, razor_code, contingent_report, **options

    trace ParamNames[ :message, :exit_status, :razor_code, :contingent_report, :options ], message, exit_status, razor_code, contingent_report, options

    if (message || '').empty?

        message =   contingent_report
    else

        if (contingent_report || '').empty?

            ;
        else

            message = "#{message}: #{contingent_report}"
        end
    end

    super message, options

    @exit_status        =   exit_status
    @razor_code         =   razor_code
    @contingent_report  =   contingent_report
end

Instance Attribute Details

#contingent_report ⇒ Object (readonly)

Returns the value of attribute contingent_report.



149
150
151
# File 'lib/razor_risk/razor/connectivity/razor_3/razor_requester.rb', line 149

def contingent_report
  @contingent_report
end

#exit_status ⇒ Object (readonly)

Returns the value of attribute exit_status.



147
148
149
# File 'lib/razor_risk/razor/connectivity/razor_3/razor_requester.rb', line 147

def exit_status
  @exit_status
end

#razor_code ⇒ Object (readonly)

Returns the value of attribute razor_code.



148
149
150
# File 'lib/razor_risk/razor/connectivity/razor_3/razor_requester.rb', line 148

def razor_code
  @razor_code
end

Instance Method Details

#inspect ⇒ Object



151
152
153
154
# File 'lib/razor_risk/razor/connectivity/razor_3/razor_requester.rb', line 151

def inspect

    "#<#{self.class}:0x00#{object_id << 1}: exit_status=#{exit_status}; razor_code=#{razor_code}; contingent_report=#{contingent_report}>"
end