Exception: Radius::WrongEndTagError

Inherits:
ParseError
  • Object
show all
Defined in:
lib/radius/error.rb

Overview

Occurs when the Parser expects an end tag for one tag and finds the end tag for another.

Instance Method Summary collapse

Constructor Details

#initialize(expected_tag, got_tag, stack) ⇒ WrongEndTagError

Returns a new instance of WrongEndTagError.



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

def initialize(expected_tag, got_tag, stack)
  stack_message = " with stack #{stack.inspect}" if stack
  super("wrong end tag `#{got_tag}' found for start tag `#{expected_tag}'#{stack_message}")
end