lib/prawn/errors.rb in prawn-2.1.0 vs lib/prawn/errors.rb in prawn-2.2.0

- old
+ new

@@ -1,7 +1,5 @@ -# encoding: utf-8 -# # errors.rb : Implements custom error classes for Prawn # # Copyright April 2008, Gregory Brown. All Rights Reserved. # # This is free software. Please see the LICENSE and COPYING files for details. @@ -41,13 +39,13 @@ # code or that the option you are trying to use has a different name than # what you have specified. # UnknownOption = Class.new(StandardError) - # this error is raised when a user attempts to embed an image of an unsupported - # type. This can either a completely unsupported format, or a dialect of a - # supported format (ie. some types of PNG) + # this error is raised when a user attempts to embed an image of an + # unsupported type. This can either a completely unsupported format, or + # a dialect of a supported format (ie. some types of PNG) UnsupportedImageType = Class.new(StandardError) # This error is raised when a named element has alredy been # created. For example, in the stamp module, stamps must have # unique names within a document @@ -61,19 +59,24 @@ UndefinedObjectName = Class.new(StandardError) # This error is raised when a required option has not been set RequiredOption = Class.new(StandardError) - # This error is raised when a requested outline item with a given title does not exist + # This error is raised when a requested outline item with a given title does + # not exist UnknownOutlineTitle = Class.new(StandardError) # This error is raised when a block is required, but not provided BlockRequired = Class.new(StandardError) - # This error is rased when a graphics method is called with improper arguments + # This error is rased when a graphics method is called with improper + # arguments InvalidGraphicsPath = Class.new(StandardError) # Raised when unrecognized content is provided for a table cell. # UnrecognizedTableContent = Class.new(StandardError) + + # This error is raised when an incompatible join style is specified + InvalidJoinStyle = Class.new(StandardError) end end