Sha256: fc8460bf91fbc62b66fdf8d7de159dcbf188cb5c7d7319cef0fee13dbc75fd02

Contents?: true

Size: 333 Bytes

Versions: 75

Compression:

Stored size: 333 Bytes

Contents

module Dynflow
  module LoggerAdapters
    module Formatters
      class Exception < Abstract
        def format(message)
          if ::Exception === message
            "#{message.message} (#{message.class})\n#{message.backtrace.join("\n")}"
          else
            message
          end
        end
      end
    end
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
dynflow-1.2.3 lib/dynflow/logger_adapters/formatters/exception.rb
dynflow-1.2.2 lib/dynflow/logger_adapters/formatters/exception.rb
dynflow-1.2.1 lib/dynflow/logger_adapters/formatters/exception.rb
dynflow-1.2.0 lib/dynflow/logger_adapters/formatters/exception.rb
dynflow-1.2.0.pre1 lib/dynflow/logger_adapters/formatters/exception.rb
dynflow-1.1.6 lib/dynflow/logger_adapters/formatters/exception.rb
dynflow-1.1.5 lib/dynflow/logger_adapters/formatters/exception.rb
dynflow-1.1.4 lib/dynflow/logger_adapters/formatters/exception.rb
dynflow-1.1.3 lib/dynflow/logger_adapters/formatters/exception.rb
dynflow-1.1.2 lib/dynflow/logger_adapters/formatters/exception.rb
dynflow-1.1.1 lib/dynflow/logger_adapters/formatters/exception.rb
dynflow-1.1.0 lib/dynflow/logger_adapters/formatters/exception.rb
dynflow-1.0.5 lib/dynflow/logger_adapters/formatters/exception.rb
dynflow-1.0.4 lib/dynflow/logger_adapters/formatters/exception.rb
dynflow-1.0.3 lib/dynflow/logger_adapters/formatters/exception.rb
dynflow-1.0.2 lib/dynflow/logger_adapters/formatters/exception.rb
dynflow-1.0.1 lib/dynflow/logger_adapters/formatters/exception.rb
dynflow-1.0.0 lib/dynflow/logger_adapters/formatters/exception.rb
dynflow-0.8.37 lib/dynflow/logger_adapters/formatters/exception.rb
dynflow-0.8.36 lib/dynflow/logger_adapters/formatters/exception.rb