Create errors from objects