Exception: ComplyanceSDK::Exceptions::ValidationError

Inherits:
SDKException
  • Object
show all
Defined in:
lib/complyance_sdk/exceptions/sdk_exception.rb

Overview

Exception raised when validation fails

Instance Attribute Summary

Attributes inherited from SDKException

#code, #context, #suggestion

Instance Method Summary collapse

Methods inherited from SDKException

#to_h

Constructor Details

#initialize(message = "Validation failed", **kwargs) ⇒ ValidationError

Returns a new instance of ValidationError.



51
52
53
# File 'lib/complyance_sdk/exceptions/sdk_exception.rb', line 51

def initialize(message = "Validation failed", **kwargs)
  super(message, code: :validation_error, **kwargs)
end