blob: 9162566666f8e29dd34a9c701d3e6d7ca97de282 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.mozilla.geckoview;
import org.mozilla.gecko.util.EventCallback;
/* package */ abstract class CallbackResult<T> extends GeckoResult<T> implements EventCallback {
@Override
public void sendError(final Object response) {
completeExceptionally(
response != null ? new Exception(response.toString()) : new UnknownError());
}
}
|