---
title: FileHandle.onerror
slug: Web/API/IDBMutableFile/onerror
tags:
  - API
  - Files
  - Non Standard
  - Property
  - Reference
  - WebAPI
---
{{APIRef("File System API")}}{{ non-standard_header }}

## Summary

Specifies an event listener to receive {{event("error")}} events. These events occur when something goes wrong.

## Syntax

    instanceOfFileHandle.onerror = funcRef;

Where `funcRef` is a function to be called when the {{event("error")}} event occurs.

## Specifications

This feature is not part of any current specification. It is no longer on track to become a standard.

## See also

- {{domxref("IDBMutableFile")}}
