Exception: Biran::ConfigSyntaxError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/biran/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil) ⇒ ConfigSyntaxError

Returns a new instance of ConfigSyntaxError.



3
4
5
6
# File 'lib/biran/exceptions.rb', line 3

def initialize(msg=nil)
  @msg = msg || 'Missing required argument or bad formatting in config file'
  set_backtrace []
end

Instance Method Details

#p_warningObject



12
13
14
# File 'lib/biran/exceptions.rb', line 12

def p_warning
  "Warning: #{@msg}"
end

#to_sObject



8
9
10
# File 'lib/biran/exceptions.rb', line 8

def to_s
  @msg
end