Error object should be documented