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