def validate(datas, &block)
      begin
        validator = Kharon::Validator.new(datas)
        validator.instance_eval(&block)
        return validator.filtered
      rescue Kharon::Errors::Validation => exception
        raise exception
      rescue Exception => exception
        raise Kharon::Errors::Validation.new({type: "standard", exception: exception.class.to_s, message: exception.message, backtrace: exception.backtrace})
      end
    end
def validate(datas, &block)
      begin
        validator = Kharon::Validator.new(datas)
        validator.instance_eval(&block)
        return validator.filtered
      rescue Kharon::Errors::Validation => exception
        raise exception
      rescue Exception => exception
        raise Kharon::Errors::Validation.new({type: "standard", exception: exception.class.to_s, message: exception.message, backtrace: exception.backtrace})
      end
    end
Validates the datas passed as parameter with a Kharon::Validator and the given instructions.
 @param  [Hash] datas the parameters to validate with the given instructions.
 @param  [Proc] block the instructions to apply on the validator.
 @return [Hash] the validated and filtered datas.