code: public static <T> void fire(HasCameraCaptureHandlers source, String errorMessage) {
          CameraCaptureEvent event = new CameraCaptureEvent(CaptureStatus.ERRORED, errorMessage);
          source.fireEvent(event);
      }
docs: Fires an event with the {@link CaptureStatus#ERRORED} status and the error message.