class WellKnown::Hooks::FailedHook
Constants
- MESSAGE_FORMAT
Attributes
hook_name[RW]
hook_source_location[RW]
wrapped_exception[RW]
Public Class Methods
new(hook_name, hook_source_location, wrapped_exception)
click to toggle source
Calls superclass method
# File lib/well_known/hooks.rb, line 18 def initialize(hook_name, hook_source_location, wrapped_exception) @hook_name = hook_name @hook_source_location = hook_source_location @wrapped_exception = wrapped_exception super(format_message) end
Public Instance Methods
cause()
click to toggle source
Calls superclass method
# File lib/well_known/hooks.rb, line 25 def cause wrapped_exception || super end
Private Instance Methods
format_message()
click to toggle source
# File lib/well_known/hooks.rb, line 31 def format_message format( MESSAGE_FORMAT, hook_name: hook_name, exception_class: wrapped_exception.class, exception_message: wrapped_exception.message, hook_source_location: hook_source_location.join(':') ) end