YMMError class

A simple implementation of the YMMErrorRepresentable protocol.

Instance methods

+errorWithIdentifier:

Creates the YMMError instance with the specified ID.

+errorWithIdentifier:message:parameters:

Creates the YMMError instance with the specified ID and other parameters.

+errorWithIdentifier:message:parameters:backtrace:underlyingError:

Creates the YMMError instance with the specified ID and other parameters.

+errorWithIdentifier:

Creates the YMMError instance with the specified ID.

+errorWithIdentifier:message:parameters:

Creates the YMMError instance with the specified ID and other parameters.

+errorWithIdentifier:message:parameters:backtrace:underlyingError:

Creates the YMMError instance with the specified ID and other parameters.

Method descriptions

+errorWithIdentifier:

+ (nonnull instancetype)errorWithIdentifier:(nonnull NSString *)identifier;

Creates the YMMError instance with the specified ID.

Parameters:
identifier

Error ID. AppMetrica uses it to group errors.

identifier

Error ID. AppMetrica uses it to group errors.

Returns:

The YMMError class instance.

+errorWithIdentifier:message:parameters:

+ (nonnull instancetype) errorWithIdentifier:(nonnull NSString *)identifier
                                     message:(nullable NSString *)message
                                  parameters:(nullable NSDictionary<NSString *, id> *)parameters;

Creates the YMMError instance with the specified ID and other parameters.

Parameters:
identifier

Error ID. AppMetrica uses it to group errors.

message Arbitrary error description
parameters Additional error parameters
identifier

Error ID. AppMetrica uses it to group errors.

message Arbitrary error description
parameters Additional error parameters

Returns:

The YMMError 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<YMMErrorRepresentable>)underlyingError;

Creates the YMMError instance with the specified ID and other parameters.

Parameters:
identifier

Error ID. AppMetrica uses it to group errors.

message Arbitrary error description
parameters Additional error parameters
backtrace Custom error backtrace
underlyingError Error instance that matches the YMMErrorRepresentable protocol.
identifier

Error ID. AppMetrica uses it to group errors.

message Arbitrary error description
parameters Additional error parameters
backtrace Custom error backtrace
underlyingError Error instance that matches the YMMErrorRepresentable protocol.

Returns:

The YMMError class instance.