AMAError class
A simple implementation of the AMAErrorRepresentable protocol.
Instance methods
Creates the |
|
Creates the |
|
+errorWithIdentifier:message:parameters:backtrace:underlyingError: |
Creates the |
Method descriptions
+errorWithIdentifier:
+ (nonnull instancetype)errorWithIdentifier:(nonnull NSString *)identifier;
Creates the AMAError
instance with the specified ID.
Parameters:
|
Error ID. AppMetrica uses it to group errors. |
Returns:
The AMAError
class instance.
+errorWithIdentifier:message:parameters:
+ (nonnull instancetype) errorWithIdentifier:(nonnull NSString *)identifier
message:(nullable NSString *)message
parameters:(nullable NSDictionary<NSString *, id> *)parameters;
Creates the AMAError
instance with the specified ID and other parameters.
Parameters:
|
Error ID. AppMetrica uses it to group errors. |
|
Arbitrary error description. |
|
Additional error parameters. |
Returns:
The AMAError
class instance.
+errorWithIdentifier:message:parameters:backtrace:underlyingError
+ (nonnull instancetype) errorWithIdentifier:(nonnull NSString *)identifier
message:(nullable NSString *)message
parameters:(nullable NSDictionary<SString *, id> *)parameters
backtrace:(nullable NSArray<NSNumber *> *)backtrace
underlyingError:(nullable id<AMAErrorRepresentable>)underlyingError;
Creates the AMAError
instance with the specified ID and other parameters.
Parameters:
|
Error ID. AppMetrica uses it to group errors. |
|
Arbitrary error description. |
|
Additional error parameters. |
|
Custom error backtrace. |
|
Error instance that matches the AMAErrorRepresentable protocol. |
Returns:
The AMAError
class instance.