Exception: Spud::RequestError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/spud_core/errors.rb

Direct Known Subclasses

AccessDeniedError, NotFoundError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ RequestError

Returns a new instance of RequestError.



5
6
7
8
# File 'lib/spud_core/errors.rb', line 5

def initialize(message)
  @template ||= 'layouts/error_page'
  super(message)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/spud_core/errors.rb', line 3

def code
  @code
end

#itemObject

Returns the value of attribute item.



2
3
4
# File 'lib/spud_core/errors.rb', line 2

def item
  @item
end

#request_urlObject

Returns the value of attribute request_url.



2
3
4
# File 'lib/spud_core/errors.rb', line 2

def request_url
  @request_url
end

#templateObject

Returns the value of attribute template.



2
3
4
# File 'lib/spud_core/errors.rb', line 2

def template
  @template
end

#titleObject (readonly)

Returns the value of attribute title.



3
4
5
# File 'lib/spud_core/errors.rb', line 3

def title
  @title
end