Added exception for print method in Printer