CBFS Storage 2020 Android Edition

Questions / Feedback?

Error Reporting and Handling

Error Codes

The CBFS Storage component APIs communicate errors using the error codes defined in their Error Codes pages (available for each component).

Reporting Errors to the Component from Event Handlers

If the event has a ResultCode parameter, the event handler can use it to return the result code of the operation to the component. The ResultCode parameter is set to 0 by default, which indicates the operation was successful.

If an unhandled exception occurs in the event handler, it will be caught by the component, which will fire the OnError event.

In some events, the OS doesn't expect the error code to be returned and either the component or the OS ignores the returned error code. Please, refer to the description of a particular event for more information.

How to Handle Errors Reported by the Component

If an error occurs, the component will throw an exception. The Code property of the exception object will contain an error code, and the Message property will contain an error message (if available).

Copyright (c) 2022 Callback Technologies, Inc. - All rights reserved.
CBFS Storage 2020 Android Edition - Version 20.0 [Build 8237]