| Flutter macOS Embedder |

Class Methods | Properties | List of all members
FlutterError Class Reference

`#import <FlutterCodecs.h>`

Inheritance diagram for FlutterError:

## Class Methods
(instancetype) | + errorWithCode:message:details:

## Properties
NSString * | code
NSString * | message
id | details

## Detailed Description

Error object representing an unsuccessful outcome of invoking a method on a `FlutterMethodChannel`, or an error event on a `FlutterEventChannel`.

Definition at line 246 of file FlutterCodecs.h.

## Method Documentation

## ◆ errorWithCode:message:details:

+ (instancetype) errorWithCode: |  | (NSString *) | code
message: |  | (NSString *_Nullable) | message
details: |  | (id _Nullable) | details

Creates a `FlutterError` with the specified error code, message, and details.

Parameters

  code | An error code string for programmatic use.
  message | A human-readable error message.
  details | Custom error details.

Referenced by TEST(), and flutter::testing::TEST_F().

## Property Documentation

## ◆ code

- (NSString*) code
| read nonatomic assign

The error code.

Definition at line 260 of file FlutterCodecs.h.

## ◆ details

- (id) details
| read nonatomic assign

The error details.

Definition at line 270 of file FlutterCodecs.h.

## ◆ message

- (NSString*) message
| read nonatomic assign

The error message.

Definition at line 265 of file FlutterCodecs.h.

The documentation for this class was generated from the following file:

- shell/platform/darwin/common/framework/Headers/FlutterCodecs.h