1 import ABI49_0_0ExpoModulesCore 2 3 internal class PrinterPickerException: GenericException<String?> { 4 override var reason: String { 5 "There was a problem with the printer picker: '\(param ?? "unknown error")'" 6 } 7 } 8 9 internal class ViewControllerNotFoundException: Exception { 10 override var reason: String { 11 "Could not find the current view controller" 12 } 13 } 14 15 internal class PickerCanceledException: Exception { 16 override var reason: String { 17 "Printer picker has been cancelled" 18 } 19 } 20 21 internal class PdfNotRenderedException: GenericException<String?> { 22 override var reason: String { 23 "Error occurred while printing to PDF: '\(param ?? "unknown error")'" 24 } 25 } 26 27 internal class PdfSavingException: Exception { 28 override var reason: String { 29 "Error occurred while saving the PDF" 30 } 31 } 32 33 internal class UnsupportedFormatException: GenericException<String?> { 34 override var reason: String { 35 "Given format '\(param ?? "unknown")' is not supported" 36 } 37 } 38 39 internal class FileOpeningException: Exception { 40 override var reason: String { 41 "Error occurred while opening the file" 42 } 43 } 44 45 internal class InvalidUrlException: Exception { 46 override var reason: String { 47 "The specified url is not valid for printing" 48 } 49 } 50 51 internal class NoPrintDataException: Exception { 52 override var reason: String { 53 "No data to print. You must specify `uri` or `html` option" 54 } 55 } 56 57 internal class PrintingJobFailedException: GenericException<String?> { 58 override var reason: String { 59 "Printing job encountered an error: '\(param ?? "unknown error")'" 60 } 61 } 62 63 internal class PrintIncompleteException: Exception { 64 override var reason: String { 65 "Printing did not complete" 66 } 67 } 68