Module: ConvenientService::Service::Plugins::HasJSendResult::Entities::Result::Plugins::CanBeFromException::Concern

Includes:
ConvenientService::Support::Concern
Defined in:
lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_be_from_exception/concern.rb

Instance Method Summary collapse

Instance Method Details

#from_unhandled_exception?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_be_from_exception/concern.rb', line 25

def from_unhandled_exception?
  Utils.to_bool(unhandled_exception)
end

#unhandled_exceptionStandardError?

Returns:

  • (StandardError, nil)


34
35
36
# File 'lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_be_from_exception/concern.rb', line 34

def unhandled_exception
  extra_kwargs[:unhandled_exception]
end