# Write method for object

**URL:** <https://discourse.julialang.org/t/write-method-for-object/62915>\
**Category:** New to Julia\
**Created:** [June 14, 2021, 9:46pm UTC](https://discourse.julialang.org/t/write-method-for-object/62915 "2021-06-14T21:46:44Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)\
**Post date:** [June 15, 2021, 2:15am UTC](https://discourse.julialang.org/t/write-method-for-object/62915/9 "2021-06-15T02:15:49Z")

</div>

Yeah, I agree that explicitly throwing a `MethodError` is unhelpful, precisely because it creates confusing messages just like this. This is the same problem that `replace` has, and it’s also confusing: [Cannot find overloaded method - #7 by GunnarFarneback](https://discourse.julialang.org/t/cannot-find-overloaded-method/48633/7)

---

_[View the full topic](https://discourse.julialang.org/t/write-method-for-object/62915)._
