Exception: PiiSafeSchema::ConfigurationError
- Inherits:
-
StandardError
- Object
- StandardError
- PiiSafeSchema::ConfigurationError
- Defined in:
- lib/pii_safe_schema/configuration.rb
Constant Summary collapse
- IGNORE_MSG =
"ignore must be a hash where the values are\nsymbols or arrays of symbols.\ne.g. ignore = { some_table: :* } ##ignore the whole some_table\nor ignore = { some_table: [:some_column, :some_other_column] }\n".freeze
- DD_CLIENT_MSG =
"Datadog client must be implement #event(title, text, opts = {})\n\nConsider using dogstatsd-ruby gem and pass in Datadog::Statsd.new(...)\nas the client.\n".freeze
Instance Method Summary collapse
-
#initialize(problem) ⇒ ConfigurationError
constructor
A new instance of ConfigurationError.
Constructor Details
#initialize(problem) ⇒ ConfigurationError
Returns a new instance of ConfigurationError.
79 80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/pii_safe_schema/configuration.rb', line 79 def initialize(problem) super( case problem when :ignore IGNORE_MSG when :datadog_client DD_CLIENT_MSG else problem end ) end |