Exception: CloudParty::Errors::UnRecognizedEndpointError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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

#endpointObject (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

#klassObject (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