Module: Roby::Log::ControlHooks::ClassExtension

Defined in:
lib/roby/log/hooks.rb

Constant Summary collapse

HOOKS =
%w{fatal_exception handled_exception}

Instance Method Summary collapse

Instance Method Details

#fatal_exception(error, tasks) ⇒ Object



163
164
165
166
# File 'lib/roby/log/hooks.rb', line 163

def fatal_exception(error, tasks)
		super if defined? super
		Roby::Log.log(:fatal_exception) { [error.exception, tasks] }
end

#handled_exception(error, task) ⇒ Object



167
168
169
170
# File 'lib/roby/log/hooks.rb', line 167

def handled_exception(error, task)
		super if defined? super
		Roby::Log.log(:handled_exception) { [error.exception, task] }
end