Sha256: 849d59600f45cc619ac15ff185ddd4110a91da21f4fa565bf9a6eafc54fafa84
Contents?: true
Size: 613 Bytes
Versions: 4
Compression:
Stored size: 613 Bytes
Contents
module Locomotive module Builder class DefaultException < ::Exception def initialize(message = nil, parent_exception = nil) self.log_backtrace(parent_exception) if parent_exception super(message) end protected def log_backtrace(parent_exception) full_error_message = "#{parent_exception.message}\n\t" full_error_message += parent_exception.backtrace.join("\n\t") full_error_message += "\n\n" Locomotive::Builder::Logger.fatal full_error_message end end class MounterException < DefaultException end end end
Version data entries
4 entries across 4 versions & 1 rubygems