Sha256: aa9843628d934152e7f004f1cc1f014d6d088baa8d28e5307f7daa98e3ed38f1

Contents?: true

Size: 1016 Bytes

Versions: 3

Compression:

Stored size: 1016 Bytes

Contents

# 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.

module Prawn
  module Errors
     
     # This error is raised when Prawn::PdfObject() encounters a Ruby object it
     # cannot convert to PDF
     #
     class FailedObjectConversion < StandardError; end
     
     # This error is raised when Document#page_layout is set to anything
     # other than :portrait or :landscape            
     #
     class InvalidPageLayout < StandardError; end        
     
     # This error is raised when Prawn cannot find a specified font   
     #
     class UnknownFont < StandardError; end   

     # This error is raised when prawn is being used on a M17N aware VM,
     # and the user attempts to add text that isn't compatible with UTF-8
     # to their document
     #
     class IncompatibleStringEncoding < StandardError; end   
     
  end
end   

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
prawn-0.1.0 lib/prawn/errors.rb
prawn-0.1.1 lib/prawn/errors.rb
prawn-0.1.2 lib/prawn/errors.rb