Exception: Expect4r::Router::Error::RouterError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Expect4r::Router::Error::RouterError
- Defined in:
- lib/router/error.rb
Direct Known Subclasses
Instance Method Summary collapse
- #err_msg ⇒ Object
-
#initialize(rname, msg) ⇒ RouterError
constructor
A new instance of RouterError.
Constructor Details
#initialize(rname, msg) ⇒ RouterError
Returns a new instance of RouterError.
4 5 6 7 |
# File 'lib/router/error.rb', line 4 def initialize(rname, msg) @rname = rname @msg = msg end |
Instance Method Details
#err_msg ⇒ Object
8 9 10 |
# File 'lib/router/error.rb', line 8 def err_msg "#{@rname} [Error] : #{@msg}" end |