Sha256: ad7dea87497315da23e2a3bd396259ba67e89be3486a8a69d67dc3f13afa9e13

Contents?: true

Size: 328 Bytes

Versions: 6

Compression:

Stored size: 328 Bytes

Contents

class Spud::AccessDeniedError < StandardError

end

class Spud::NotFoundError < StandardError

  attr_accessor :request_url, :item, :template

  def initialize(opts={})
    @item = opts[:item] || 'page'
    @template = opts[:template] || nil
    super("The #{item.downcase} you were looking for could not be found.")
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tb_core-1.2.4 lib/spud_core/exceptions.rb
tb_core-1.2.3 lib/spud_core/exceptions.rb
tb_core-1.2.2 lib/spud_core/exceptions.rb
tb_core-1.2.1 lib/spud_core/exceptions.rb
tb_core-1.2.0 lib/spud_core/exceptions.rb
tb_core-1.1.10 lib/spud_core/exceptions.rb