Exception: Baykit::BayServer::ConfigException
- Inherits:
-
BayException
- Object
- StandardError
- BayException
- Baykit::BayServer::ConfigException
- Defined in:
- lib/baykit/bayserver/config_exception.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#file_name ⇒ Object
readonly
Returns the value of attribute file_name.
-
#line_no ⇒ Object
readonly
Returns the value of attribute line_no.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(file_name, line_no, fmt, *args) ⇒ ConfigException
constructor
A new instance of ConfigException.
- #message ⇒ Object
Constructor Details
#initialize(file_name, line_no, fmt, *args) ⇒ ConfigException
Returns a new instance of ConfigException.
10 11 12 13 14 |
# File 'lib/baykit/bayserver/config_exception.rb', line 10 def initialize(file_name, line_no, fmt, *args) super(fmt, *args) @file_name = file_name @line_no = line_no end |
Instance Attribute Details
#file_name ⇒ Object (readonly)
Returns the value of attribute file_name.
7 8 9 |
# File 'lib/baykit/bayserver/config_exception.rb', line 7 def file_name @file_name end |
#line_no ⇒ Object (readonly)
Returns the value of attribute line_no.
8 9 10 |
# File 'lib/baykit/bayserver/config_exception.rb', line 8 def line_no @line_no end |
Class Method Details
.create_message(msg, fname, line) ⇒ Object
20 21 22 |
# File 'lib/baykit/bayserver/config_exception.rb', line 20 def self::(msg, fname, line) return "#{msg == nil ? "" : msg} #{fname}:#{line}" end |
Instance Method Details
#message ⇒ Object
16 17 18 |
# File 'lib/baykit/bayserver/config_exception.rb', line 16 def () return ConfigException::(super, @file_name, @line_no) end |