The PrinterException
class and its subclasses are used to indicate that an exceptional condition has occurred in the print system. This Graphics2D
class extends the Graphics class to provide more sophisticated control over geometry, coordinate transformations, color management, and text layout. This is the fundamental class for rendering 2-dimensional shapes, text and images on the Java(tm) platform.
class and its subclasses are used to indicate that an exceptional condition has occurred in the print system. This Graphics2D
class extends the Graphics class to provide more sophisticated control over geometry, coordinate transformations, color management, and text layout. This is the fundamental class for rendering 2-dimensional shapes, text and images on the Java(tm) platform.
一般处理异常有两种不同的思路:第一个是就近处理,哪抛出异常,就在那处理。
第二个是集中处理,就是把异常都向上抛出,在适当的地方用try加多个catch,集中处理。