Sha256: 2320e7cbf0165e810b7a7985c0f9901edf1691b28c72136ab408518e97058eb4

Contents?: true

Size: 294 Bytes

Versions: 16

Compression:

Stored size: 294 Bytes

Contents

module BrInvoicesPdf
  module Errors
    class InvalidDocumentType < StandardError
      attr_reader :type

      def initialize(type)
        super("`#{type.inspect}` is not supported. Must be one of #{BrInvoicesPdf.supported_document_types}")
        @type = type
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
br_invoices_pdf-0.2.6 lib/br_invoices_pdf/errors/invalid_document_type.rb
br_invoices_pdf-0.2.6.alpha.18 lib/br_invoices_pdf/errors/invalid_document_type.rb
br_invoices_pdf-0.2.5.alpha.17 lib/br_invoices_pdf/errors/invalid_document_type.rb
br_invoices_pdf-0.2.5 lib/br_invoices_pdf/errors/invalid_document_type.rb
br_invoices_pdf-0.2.5.alpha.16 lib/br_invoices_pdf/errors/invalid_document_type.rb
br_invoices_pdf-0.2.4 lib/br_invoices_pdf/errors/invalid_document_type.rb
br_invoices_pdf-0.2.4.alpha.15 lib/br_invoices_pdf/errors/invalid_document_type.rb
br_invoices_pdf-0.2.4.alpha.14 lib/br_invoices_pdf/errors/invalid_document_type.rb
br_invoices_pdf-0.2.3 lib/br_invoices_pdf/errors/invalid_document_type.rb
br_invoices_pdf-0.2.2 lib/br_invoices_pdf/errors/invalid_document_type.rb
br_invoices_pdf-0.2.1 lib/br_invoices_pdf/errors/invalid_document_type.rb
br_invoices_pdf-0.2.0 lib/br_invoices_pdf/errors/invalid_document_type.rb
br_invoices_pdf-0.2.0.alpha.13 lib/br_invoices_pdf/errors/invalid_document_type.rb
br_invoices_pdf-0.2.0.alpha.12 lib/br_invoices_pdf/errors/invalid_document_type.rb
br_invoices_pdf-0.1.5.alpha.11 lib/br_invoices_pdf/errors/invalid_document_type.rb
br_invoices_pdf-0.1.5.alpha.10 lib/br_invoices_pdf/errors/invalid_document_type.rb