Method: LeanTesting::SDKInvalidArgException#initialize

Defined in:
lib/Exception/SDKInvalidArgException.rb

#initialize(message = nil) ⇒ SDKInvalidArgException

Returns a new instance of SDKInvalidArgException.



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

def initialize(message = nil)
  @baseMessage = 'Invalid argument'

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

  super
end