Module: ConvenientService::Service::Plugins::CanHaveFormattedExceptions Private

Defined in:
lib/convenient_service/service/plugins/can_have_formatted_exceptions.rb,
lib/convenient_service/service/plugins/can_have_formatted_exceptions/constants.rb,
lib/convenient_service/service/plugins/can_have_formatted_exceptions/commands/format_line.rb,
lib/convenient_service/service/plugins/can_have_formatted_exceptions/commands/format_cause.rb,
lib/convenient_service/service/plugins/can_have_formatted_exceptions/commands/format_class.rb,
lib/convenient_service/service/plugins/can_have_formatted_exceptions/commands/format_message.rb,
lib/convenient_service/service/plugins/can_have_formatted_exceptions/commands/format_backtrace.rb,
lib/convenient_service/service/plugins/can_have_formatted_exceptions/commands/format_exception.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0

Defined Under Namespace

Modules: Commands, Constants

Class Method Summary collapse

Class Method Details

.default_max_backtrace_sizeInteger

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Integer)

Since:

  • 1.0.0



19
20
21
# File 'lib/convenient_service/service/plugins/can_have_formatted_exceptions.rb', line 19

def default_max_backtrace_size
  Constants::DEFAULT_MAX_BACKTRACE_SIZE
end

.format_exception(exception, **kwargs) ⇒ String

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

  • exception (StandardError)
  • kwargs (Hash{Symbol => Object})

Returns:

  • (String)

Since:

  • 1.0.0



28
29
30
# File 'lib/convenient_service/service/plugins/can_have_formatted_exceptions.rb', line 28

def format_exception(exception, **kwargs)
  Commands::FormatException.call(exception: exception, **kwargs)
end