Exception: LeanTesting::SDKUnsupportedRequestException
- Inherits:
-
SDKException
- Object
- Exception
- SDKException
- LeanTesting::SDKUnsupportedRequestException
- Defined in:
- lib/Exception/SDKUnsupportedRequestException.rb
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ SDKUnsupportedRequestException
constructor
A new instance of SDKUnsupportedRequestException.
Methods inherited from SDKException
Constructor Details
#initialize(message = nil) ⇒ SDKUnsupportedRequestException
Returns a new instance of SDKUnsupportedRequestException.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/Exception/SDKUnsupportedRequestException.rb', line 4 def initialize( = nil) @baseMessage = 'Unsupported request data' if .is_a? Array = .map{ |el| '`' + el + '`' }.join(', ') end if ! = @baseMessage else = @baseMessage + ' - invalid ' + end super end |