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)


20
21
22
# File 'lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_be_from_exception/concern.rb', line 20

def from_unhandled_exception?
  Utils.to_bool(unhandled_exception)
end

#unhandled_exceptionStandardError?

Returns:

  • (StandardError, nil)


29
30
31
# File 'lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_be_from_exception/concern.rb', line 29

def unhandled_exception
  extra_kwargs[:unhandled_exception]
end