Flutter Engine
The Flutter Engine
shell
platform
android
io
flutter
plugin
common
FlutterException.java
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
package
io.flutter.plugin.common;
6
7
import
io.flutter.BuildConfig;
8
import
io.flutter.Log;
9
10
/** Thrown to indicate that a Flutter method invocation failed on the Flutter side. */
11
public
class
FlutterException
extends
RuntimeException {
12
private
static
final
String TAG =
"FlutterException#"
;
13
14
public
final
String
code
;
15
public
final
Object
details
;
16
17
FlutterException
(String
code
, String
message
, Object
details
) {
18
super(
message
);
19
if
(
BuildConfig
.
DEBUG
&&
code
==
null
) {
20
Log
.
e
(
TAG
,
"Parameter code must not be null."
);
21
}
22
this.code =
code
;
23
this.details =
details
;
24
}
25
}
io.flutter.BuildConfig
Definition:
BuildConfig.java:9
io.flutter.BuildConfig.DEBUG
static final boolean DEBUG
Definition:
BuildConfig.java:15
io.flutter.Log
Definition:
Log.java:14
io.flutter.Log.e
static void e(@NonNull String tag, @NonNull String message)
Definition:
Log.java:84
io.flutter.plugin.common.FlutterException
Definition:
FlutterException.java:11
io.flutter.plugin.common.FlutterException.details
final Object details
Definition:
FlutterException.java:15
io.flutter.plugin.common.FlutterException.code
final String code
Definition:
FlutterException.java:14
io.flutter.plugin.common.FlutterException.FlutterException
FlutterException(String code, String message, Object details)
Definition:
FlutterException.java:17
message
Win32Message message
Definition:
keyboard_unittests.cc:139
TAG
#define TAG()
Definition:
regexp_assembler_ir.cc:29
Generated on Sun Jun 23 2024 21:55:09 for Flutter Engine by
1.9.4