blob: d5f18a278d864e9454de43d030ac37cedadc5c4d [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.base;
import org.chromium.base.annotations.CalledByNative;
import org.chromium.base.annotations.MainDex;
@MainDex
abstract class ThrowUncaughtException {
@CalledByNative
private static void post() {
ThreadUtils.postOnUiThread(new Runnable() {
@Override
public void run() {
throw new RuntimeException("Intentional exception not caught by JNI");
}
});
}
}