YMMError class

A simple implementation of the YMMErrorRepresentable protocol.

Instance methods

init(identifier:)

Creates the YMMError instance with the specified ID.

init(identifier:message:parameters:)

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

init(identifier:message:parameters:backtrace:underlyingError:)

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

init(identifier:)

Creates the YMMError instance with the specified ID.

init(identifier:message:parameters:)

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

init(identifier:message:parameters:backtrace:underlyingError:)

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

Method descriptions

init(identifier:)

convenience init(identifier: String)

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.

init(identifier:message:parameters:)

convenience init(identifier: String, message: String?, parameters: [String : Any]?)

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.

init(identifier:message:parameters:backtrace:underlyingError:)

convenience init(identifier: String, message: String?, parameters: [String : Any]?, backtrace: [NSNumber]?, underlyingError: YMMErrorRepresentable?)

Creates the YMMError instance of the user 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.