- Overview
 - Platform Support
 - The Command-Line Interface
 - Platform Guides
 - Using Plugman to Manage Plugins
 - The config.xml File
 - Icons and Splash Screens
 - Embedding WebViews
 - Plugin Development Guide
 - Privacy Guide
 - Whitelist Guide
 - Accelerometer
 - Camera
 - Capture
 - Compass
 - Connection
 - Contacts
 - Device
 - Events
 - File
 - Geolocation
 - Globalization
 - InAppBrowser
 - Media
 - Notification
 - Splashscreen
 - Storage
 
                    
                    This version of the documentation is outdated!
                    
                        Click here for the latest released version.
                    
                
            
            
            
            CaptureErrorCB
Invoked if an error occurs during a media capture operation.
function captureError( CaptureError error ) { ... };
Description
This function executes if an error occurs when trying to launch a media capture operation. Failure scenarios include when the capture application is busy, a capture operation is already taking place, or the user cancels the operation before any media files are captured.
This function executes with a [CaptureError](CaptureError.html) object containing an
appropriate error code.
Quick Example
// capture error callback
var captureError = function(error) {
    navigator.notification.alert('Error code: ' + error.code, null, 'Capture Error');
};