Throw exception when accessing fields in unacknowledged WriteResult

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 1.0.0-beta2
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The CRUD API discusses throwing an exception if the user accesses fields on a write result when it is unacknowledged. I'm inclined to either throw a BadMethodCallException or, more generally, a LogicException. I don't consider it a RuntimeException, as it indicates incorrect code and something the developer should know not to do in advance.

              Assignee:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: