#import <FlutterCodecs.h>
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.
◆ errorWithCode:message:details: [1/2]
+ (instancetype) errorWithCode: |
|
(NSString*) |
code |
message: |
|
(NSString*) |
message |
details: |
|
(id) |
details |
|
|
| |
|
implementation |
◆ errorWithCode:message:details: [2/2]
+ (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. |
◆ hash
Definition at line 73 of file FlutterChannels.mm.
199 {
200 return [self.code hash] ^ [self.message hash] ^ [self.details hash];
201}
◆ initWithCode:message:details:
- (instancetype) initWithCode: |
|
(NSString*) |
code |
message: |
|
(NSString*) |
message |
details: |
|
(id) |
details |
|
|
| |
|
implementation |
Definition at line 73 of file FlutterChannels.mm.
177 NSAssert(
code,
@"Code cannot be nil");
178 self = [super init];
179 NSAssert(self, @"Super init cannot be nil");
180 _code = [code copy];
181 _message = [message copy];
183 return self;
184}
◆ isEqual:
Definition at line 73 of file FlutterChannels.mm.
187 if (self == object) {
188 return YES;
189 }
191 return NO;
192 }
194 return [self.code isEqual:other.code] &&
197}
◆ code
◆ details
◆ message
The documentation for this class was generated from the following files: