Exception: ControlplaneApiDirect::ForbiddenError
- Inherits:
-
StandardError
- Object
- StandardError
- ControlplaneApiDirect::ForbiddenError
- Defined in:
- lib/core/controlplane_api_direct.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url:, response:) ⇒ ForbiddenError
constructor
A new instance of ForbiddenError.
Constructor Details
#initialize(url:, response:) ⇒ ForbiddenError
Returns a new instance of ForbiddenError.
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/core/controlplane_api_direct.rb', line 29 def initialize(url:, response:) @url = url org = ControlplaneApiDirect.parse_org(url) = if org "Double check your org #{org}. #{response}" else "Control Plane API request to #{url} was forbidden. #{response}" end super() end |
Instance Attribute Details
#url ⇒ Object (readonly)
Returns the value of attribute url.
27 28 29 |
# File 'lib/core/controlplane_api_direct.rb', line 27 def url @url end |