66
77use DR \Ipp \Client \CupsIppHttpClient ;
88use DR \Ipp \Client \IppHttpClientInterface ;
9+ use DR \Ipp \Client \IppRequestException ;
910use DR \Ipp \Entity \IppJob ;
1011use DR \Ipp \Entity \IppPrinter ;
1112use DR \Ipp \Entity \IppPrintFile ;
@@ -66,7 +67,7 @@ public function printerAdministration(): PrinterAdminService
6667 }
6768
6869 /**
69- * @throws ClientExceptionInterface
70+ * @throws ClientExceptionInterface|IppRequestException
7071 */
7172 public function print (IppPrinter $ printer , IppPrintFile $ file ): IppResponseInterface
7273 {
@@ -76,7 +77,7 @@ public function print(IppPrinter $printer, IppPrintFile $file): IppResponseInter
7677 }
7778
7879 /**
79- * @throws ClientExceptionInterface
80+ * @throws ClientExceptionInterface|IppRequestException
8081 */
8182 public function getJobAttributes (IppJob $ job ): IppResponseInterface
8283 {
@@ -87,7 +88,7 @@ public function getJobAttributes(IppJob $job): IppResponseInterface
8788
8889 /**
8990 * Requests a list of printer attributes for the specified printer
90- * @throws ClientExceptionInterface
91+ * @throws ClientExceptionInterface|IppRequestException
9192 */
9293 public function getPrinterAttributes (IppPrinter $ printer ): IppResponseInterface
9394 {
@@ -97,7 +98,7 @@ public function getPrinterAttributes(IppPrinter $printer): IppResponseInterface
9798 }
9899
99100 /**
100- * @throws ClientExceptionInterface
101+ * @throws ClientExceptionInterface|IppRequestException
101102 */
102103 public function getJobs (IppPrinter $ printer , bool $ completed = false ): IppResponseInterface
103104 {
@@ -107,7 +108,7 @@ public function getJobs(IppPrinter $printer, bool $completed = false): IppRespon
107108 }
108109
109110 /**
110- * @throws ClientExceptionInterface
111+ * @throws ClientExceptionInterface|IppRequestException
111112 */
112113 public function cancelJob (IppJob $ job ): IppResponseInterface
113114 {
@@ -117,7 +118,7 @@ public function cancelJob(IppJob $job): IppResponseInterface
117118 }
118119
119120 /**
120- * @throws ClientExceptionInterface
121+ * @throws ClientExceptionInterface|IppRequestException
121122 */
122123 public function validatePrintJob (IppPrinter $ printer , IppPrintFile $ file ): IppResponseInterface
123124 {
0 commit comments