// // This file is auto-generated. Do not edit manually. // #if os(Linux) import Foundation #else import Foundation #endif public class PdftractError: Error { public let message: String public let exitCode: Int public init(_ message: String, _ exitCode: Int) { self.message = message self.exitCode = exitCode } public var localizedDescription: String { return message } } {% for error in errors %} {% if error.exit_code != 0 and error.exit_code != 10 %} /// {{ error.description }} public class {{ error.exception_name }}: PdftractError { public init(_ message: String, _ exitCode: Int) { super.init(message, exitCode) } } {% endif %} {% endfor %} {% for error in errors %} {% if error.exit_code == 10 %} /// {{ error.description }} public class {{ error.exception_name }}: PdftractError { public init(_ message: String, _ exitCode: Int) { super.init(message, exitCode) } } {% endif %} {% endfor %}