# Can I define fallback behavior for the “object has no member" error?

**URL:** <https://forums.swift.org/t/can-i-define-fallback-behavior-for-the-object-has-no-member-error/56493>\
**Category:** Using Swift\
**Created:** [April 3, 2022, 6:38pm UTC](https://forums.swift.org/t/can-i-define-fallback-behavior-for-the-object-has-no-member-error/56493 "2022-04-03T18:38:22Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mbutterick](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/mbutterick/32/20497_2.png) [@mbutterick](https://forums.swift.org/u/mbutterick)\
**Post date:** [April 3, 2022, 11:18pm UTC](https://forums.swift.org/t/can-i-define-fallback-behavior-for-the-object-has-no-member-error/56493/3 "2022-04-03T23:18:07Z")

</div>

Thank you. I have clarified the question to rule out this possibility. I am trying to achieve what we might call “automatic failover” behavior.

Your suggestion seems like it might work if `dynamicMember` could become a key path, but apparently [key paths can’t refer to instance methods](https://forums.swift.org/t/why-can-t-key-paths-refer-to-instance-methods/35315).

---

_[View the full topic](https://forums.swift.org/t/can-i-define-fallback-behavior-for-the-object-has-no-member-error/56493)._
