Use new error methods, update docs

Apply change here, so variable becomes `messageObject`.