Sha256: 4a7bfa40604925ef5eb0e4392b1527fb8de0bf97aa39c8d790728a326f6ad28a

Contents?: true

Size: 637 Bytes

Versions: 3

Compression:

Stored size: 637 Bytes

Contents

# encoding: utf-8
module Filegen
  # Exceptions
  module Exceptions
    # raised if order arguments are invalid
    class DataSourcesAreInvalid < RuntimeError; end

    # raised if one forgot to tell the script the template name
    class TemplateNameIsMissing < RuntimeError; end

    # raised if template given on commandline does not exist
    class TemplateDoesNotExist < RuntimeError; end

    # raised if one uses an invalid template name (missing erb)
    class TemplateNameIsInvalid < RuntimeError; end

    # raised if a given erb template has syntax errors in it
    class ErbTemplateHasSyntaxErrors < Exception; end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
filegen-0.4.1 lib/filegen/exceptions.rb
filegen-0.4.0 lib/filegen/exceptions.rb
filegen-0.3.1 lib/filegen/exceptions.rb