class DTK::Client::DtkError::InternalError

Constants

InternalErrorLabel

Public Class Methods

label(where=nil) click to toggle source
# File lib/dtk_error.rb, line 77
def self.label(where=nil)
  prefix = (where ? "#{where.to_s.upcase} " : '')
  "#{prefix}#{InternalErrorLabel}"
end
new(error_msg,opts={}) click to toggle source
Calls superclass method
# File lib/dtk_error.rb, line 73
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/dtk_error.rb, line 84
def label(where=nil)
  self.class.label(where)
end