Exception: LeanTesting::SDKBadJSONResponseException

Inherits:
SDKException
  • Object
show all
Defined in:
lib/Exception/SDKBadJSONResponseException.rb

Instance Method Summary collapse

Methods inherited from SDKException

#message

Constructor Details

#initialize(message = nil) ⇒ SDKBadJSONResponseException

Returns a new instance of SDKBadJSONResponseException.



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/Exception/SDKBadJSONResponseException.rb', line 4

def initialize(message = nil)
	@baseMessage = 'JSON remote response is inconsistent or invalid'

	if !message
		message = @baseMessage
	else
		message = @baseMessage + ' - ' + message
	end

	super
end