@Override
            public void onRelationshipValidationResult(int relation, Uri requestedOrigin,
                    boolean validated, Bundle extras) {
                if (!validated) {
                    onError(new RuntimeException("Failed to validate origin " + requestedOrigin));
                    finish();
                    return;
                }

                try {
                    TrustedWebUtils.launchBrowserSiteSettings(ManageDataLauncherActivity.this,
                            mSession, requestedOrigin);
                } catch (RuntimeException e) {
                    onError(e);
                    finish();
                }
            }
Override to implement custom error handling.
customtabs/src/android/support/customtabs/trusted/ManageDataLauncherActivity.java