Exception: CloudParty::Errors::UnRecognizedEndpointError
- Inherits:
-
StandardError
- Object
- StandardError
- CloudParty::Errors::UnRecognizedEndpointError
- Defined in:
- lib/cloud_party/exceptions/un_recognized_endpoint_error.rb
Overview
UnRecognizedEndpointError
When an endpoint is not recognized by the gem logic
Instance Attribute Summary collapse
-
#endpoint ⇒ Object
readonly
Returns the value of attribute endpoint.
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
Instance Method Summary collapse
-
#initialize(endpoint, klass) ⇒ UnRecognizedEndpointError
constructor
A new instance of UnRecognizedEndpointError.
Constructor Details
#initialize(endpoint, klass) ⇒ UnRecognizedEndpointError
Returns a new instance of UnRecognizedEndpointError.
12 13 14 15 16 |
# File 'lib/cloud_party/exceptions/un_recognized_endpoint_error.rb', line 12 def initialize(endpoint, klass) super("'#{endpoint}' is not a recognized endpoint for class #{klass}") @endpoint = endpoint @klass = klass end |
Instance Attribute Details
#endpoint ⇒ Object (readonly)
Returns the value of attribute endpoint.
10 11 12 |
# File 'lib/cloud_party/exceptions/un_recognized_endpoint_error.rb', line 10 def endpoint @endpoint end |
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
10 11 12 |
# File 'lib/cloud_party/exceptions/un_recognized_endpoint_error.rb', line 10 def klass @klass end |