Sha256: 88353702b5ff7c030c97ee453ed091039fe0abc0c838b31500aa8c58bd69ccf1

Contents?: true

Size: 716 Bytes

Versions: 3

Compression:

Stored size: 716 Bytes

Contents

module WebResourceBundler::Exceptions
  class WebResourceBundlerError < Exception

    def initialize(message = "Unknown error occured")
      @message = message
    end

    def to_s; @message; end

  end

  class ResourceNotFoundError < WebResourceBundlerError
    def initialize(path)
      super "Resource #{path} not found"
    end
  end

  class NonExistentCssImage < WebResourceBundlerError
    def initialize(image_path)
      super "Css has url to incorrect image path: #{image_path}"
    end
  end

  class LogCreationError < WebResourceBundlerError
    def initialize(log_path, original_exception)
      super "Can't create log file, check log path: #{log_path}\n#{original_exception}"
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
web_resource_bundler-0.0.23 lib/web_resource_bundler/exceptions.rb
web_resource_bundler-0.0.22 lib/web_resource_bundler/exceptions.rb
web_resource_bundler-0.0.21 lib/web_resource_bundler/exceptions.rb