class Anony::FieldException
This exception is thrown when validating the anonymisation strategies for all fields. If some are missing, they will be included in the message.
@example Missing the first_name field
class Employee anonymise { fields { ignore :last_name } } end Employee.first.valid_anonymisation? => FieldException, Invalid anonymisation strategy for field(s) [:first_name]
Public Class Methods
new(fields)
click to toggle source
Calls superclass method
# File lib/anony/field_exception.rb, line 15 def initialize(fields) fields = Array(fields) super("Invalid anonymisation strategy for field(s) #{fields}") end