Exception: Expect4r::Router::Error::RouterError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/router/error.rb

Direct Known Subclasses

BadPasswordError, SemanticError, SyntaxError

Instance Method Summary collapse

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_msgObject



8
9
10
# File 'lib/router/error.rb', line 8

def err_msg
  "#{@rname} [Error] : #{@msg}"
end