//
// Copyright © 2023 Nevis Security AG. All rights reserved.
//

import NevisMobileAuthentication

struct ErrorMessage: ChannelOutMessage {
	// MARK: Properties

	let operationId: String
	var exception: ChannelError?

	// MARK: Initialization

	init(operationId: String, error: Error? = nil) {
		self.operationId = operationId
		if let error {
			self.exception = error.asChannelError()
		}
	}
}
