Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
5package io.flutter.plugin.common;
6
7import io.flutter.BuildConfig;
8import io.flutter.Log;
9
10/** Thrown to indicate that a Flutter method invocation failed on the Flutter side. */
11public 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}
static final boolean DEBUG
static void e(@NonNull String tag, @NonNull String message)
Definition Log.java:84
FlutterException(String code, String message, Object details)
Win32Message message
#define TAG()