Exception: KazeClient::Error::NoEndpoint

Inherits:
Generic show all
Defined in:
lib/kaze_client/error/no_endpoint.rb

Overview

An error raised when the base URL given to the KazeClient::Client is nil

See Also:

Author:

Since:

  • 0.1.0

Constant Summary

Constants inherited from Generic

Generic::DEFAULT_MESSAGE

Instance Attribute Summary collapse

Attributes inherited from Generic

#error, #status

Instance Method Summary collapse

Constructor Details

#initialize(base_url) ⇒ NoEndpoint

Returns a new instance of NoEndpoint.

Since:

  • 0.1.0



15
16
17
18
19
# File 'lib/kaze_client/error/no_endpoint.rb', line 15

def initialize(base_url)
  super(status: nil, message: "Invalid base url +#{base_url}+", error: nil)

  @base_url = base_url
end

Instance Attribute Details

#base_urlObject (readonly)

Returns the given base URL.

Returns:

  • the given base URL

Since:

  • 0.1.0



13
14
15
# File 'lib/kaze_client/error/no_endpoint.rb', line 13

def base_url
  @base_url
end