Sha256: 2a5e3803b3ecf81d46d82fb38903ee5567d2075af23dd56ffa102f9b07264d35

Contents?: true

Size: 449 Bytes

Versions: 6

Compression:

Stored size: 449 Bytes

Contents

module Blueprints
  class Error < StandardError
    def initialize(blueprint)
      @name = blueprint
    end

    def to_s
      "Blueprint '#{@name}' #{message_append}"
    end
  end

  class DemolishError < Error
    def message_append
      'must be built before demolishing'
    end
  end

  # Is raised when blueprint or namespace is not found.
  class BlueprintNotFoundError < Error
    def message_append
      'not found'
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
blueprints-1.0.1 lib/blueprints/errors.rb
blueprints-1.0.0 lib/blueprints/errors.rb
blueprints-0.9.0 lib/blueprints/errors.rb
blueprints-0.8.2 lib/blueprints/errors.rb
blueprints-0.8.1 lib/blueprints/errors.rb
blueprints-0.8.0 lib/blueprints/errors.rb