Exception: Biran::ConfigSyntaxError
- Inherits:
-
StandardError
- Object
- StandardError
- Biran::ConfigSyntaxError
- Defined in:
- lib/biran/exceptions.rb
Instance Method Summary collapse
-
#initialize(msg = nil) ⇒ ConfigSyntaxError
constructor
A new instance of ConfigSyntaxError.
- #p_warning ⇒ Object
- #to_s ⇒ Object
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_warning ⇒ Object
12 13 14 |
# File 'lib/biran/exceptions.rb', line 12 def p_warning "Warning: #{@msg}" end |
#to_s ⇒ Object
8 9 10 |
# File 'lib/biran/exceptions.rb', line 8 def to_s @msg end |