mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
18 lines
407 B
Swift
18 lines
407 B
Swift
import Foundation
|
|
|
|
import CommonCore
|
|
import LayoutKit
|
|
|
|
public protocol DivBlockModeling {
|
|
func makeBlock(context: DivBlockModelingContext) throws -> Block
|
|
}
|
|
|
|
public struct DivBlockModelingError: Error, CustomStringConvertible, Equatable {
|
|
public let description: String
|
|
|
|
init(_ message: String, path: UIElementPath) {
|
|
description = "\(message) [\(path)]"
|
|
DivKitLogger.error(description)
|
|
}
|
|
}
|