class DTK::Client::Error::InternalError

Constants

InternalErrorLabel

Public Class Methods

label(where = nil) click to toggle source
# File lib/client/error/subclasses.rb, line 43
def self.label(where = nil)
  prefix = (where ? "#{where.to_s.upcase} " : '')
  "#{prefix}#{InternalErrorLabel}"
end
new(error_msg, opts = {}) click to toggle source

opts can have keys

:backtrace
:where
Calls superclass method
# File lib/client/error/subclasses.rb, line 39
def initialize(error_msg, opts = {})
  msg_to_pass_to_super = "[#{label(opts[:where])}] #{error_msg}"
  super(msg_to_pass_to_super, opts)
end

Private Instance Methods

label(where=nil) click to toggle source
# File lib/client/error/subclasses.rb, line 50
def label(where=nil)
  self.class.label(where)
end