code: def try_and_error(*funcs):
      
      def validate(value):
          exc = None
          for func in funcs:
              try:
                  return func(value)
              except (ValueError, TypeError) as e:
                  exc = e
          raise exc
      return validate
docs: Apply multiple validation functions
  
      Parameters
      ----------
      ``*funcs``
          Validation functions to test
  
      Returns
      -------
      function