mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
16 lines
328 B
Swift
16 lines
328 B
Swift
public final class DivErrorsStorage {
|
|
public private(set) var errors: [DivError] = []
|
|
|
|
init(errors: [DivError]) {
|
|
self.errors = errors
|
|
}
|
|
|
|
func add(_ error: DivError) {
|
|
errors.append(error)
|
|
}
|
|
|
|
func add(contentsOf errorStorage: DivErrorsStorage) {
|
|
self.errors.append(contentsOf: errorStorage.errors)
|
|
}
|
|
}
|