Class: SWS::ExceptionPage

Inherits:
Component show all
Defined in:
lib/sws/Core/components/ExceptionPage/ExceptionPage.rb

Overview

Default exception page - displays exception message and the backtrace

Instance Attribute Summary collapse

Attributes inherited from Component

#action_components, #definition_component, #encoding, #html_attrs, #method_to_call, #name, #parameters, #parent, #request, #request_number, #slots, #subcomponents, #tokens

Instance Method Summary collapse

Methods inherited from Component

#api_filename, #app, #append_to_response, #awake, #container?, #content?, create, #create_component_tree, #definition_filename, #page, #perform_action, #process_bindings, #process_parameters, #process_request, #remove_subcomponents, #session, #set_request_subcomponents, #sleep, #slot_bound?, #subcomponent_for_name, synchronize_slot, #synchronize_slot?, #synchronize_slots, #template_filename, #tokenize_binding, #update_binding, #url_string

Constructor Details

#initialize(*args) ⇒ ExceptionPage

Returns a new instance of ExceptionPage.



12
13
14
# File 'lib/sws/Core/components/ExceptionPage/ExceptionPage.rb', line 12

def initialize( *args )
	super
end

Instance Attribute Details

#backtrace_cursorObject

Cursor to iterate through backtrace elements



10
11
12
# File 'lib/sws/Core/components/ExceptionPage/ExceptionPage.rb', line 10

def backtrace_cursor
  @backtrace_cursor
end

#exceptionObject

Exception to be displayed.



7
8
9
# File 'lib/sws/Core/components/ExceptionPage/ExceptionPage.rb', line 7

def exception
  @exception
end