Sha256: e33c12a2d6cf458f6f4ef1ed27ddf843d0cfd7ae711e056e5674eddb5d9d7cb2

Contents?: true

Size: 508 Bytes

Versions: 3

Compression:

Stored size: 508 Bytes

Contents

# encoding: utf-8

module Pupu
  class PupuRootNotFound < StandardError
  end

  class PluginNotFoundError < StandardError
    def initialize(plugin)
      super("Plugin not found: #{plugin.inspect}")
    end
  end

  class PluginIsAlreadyInstalled < StandardError
  end

  class MediaDirectoryNotExist < StandardError
  end

  class AssetNotFound < StandardError
    attr_accessor :path, :message
    def initialize(path)
      @path = path
      @message = "File #{@path} doesn't exist."
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pupu-0.2.1 lib/pupu/exceptions.rb
pupu-0.2 lib/pupu/exceptions.rb
pupu-0.1 lib/pupu/exceptions.rb