Sha256: d6a2d38ad686adbc4cf086cc91921d9eff8f1e2b58f1d6ba4587e969289636bb

Contents?: true

Size: 502 Bytes

Versions: 3

Compression:

Stored size: 502 Bytes

Contents

class Hairballs
  class PluginNotFound < RuntimeError
    def initialize(plugin_name)
      message = "Plugin not found: :#{plugin_name}."
      super(message)
    end
  end

  class PluginLoadFailure < RuntimeError
    def initialize(plugin_name)
      message = "Unable to load plugin: :#{plugin_name}."
      super(message)
    end
  end

  class ThemeUseFailure < RuntimeError
    def initialize(theme_name)
      message = "Theme not found: :#{theme_name}."
      super(message)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hairballs-0.1.1 lib/hairballs/exceptions.rb
hairballs-0.1.0 lib/hairballs/exceptions.rb
hairballs-0.0.1 lib/hairballs/exceptions.rb