AppMetricaError class

A simple implementation of the ErrorRepresentable protocol.

Instance methods

init(identifier:)

Creates the AppMetricaError instance with the specified ID.

init(identifier:message:parameters:)

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

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

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

Method descriptions

init(identifier:)

convenience init(identifier: String)

Creates the AppMetricaError instance with the specified ID.

Parameters:

identifier

Error ID. AppMetrica uses it to group errors.

Returns:

The AppMetricaError class instance.

init(identifier:message:parameters:)

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

Creates the AppMetricaError 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.

Returns:

The AppMetricaError class instance.

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

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

Creates the AppMetricaError 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 ErrorRepresentable protocol.

Returns:

The AppMetricaError class instance.