Method: CiscoAclIntp::ParserUtility#acl_arg_err_message

Defined in:
lib/cisco_acl_intp/parser_api.rb

#acl_arg_err_message(err, pos_str) ⇒ Object

Generate parser error message by AclArgumentError

Parameters:

  • err (AclArgumentError)

    Exception

  • pos_str (String)

    Error position string

[View source]

60
61
62
63
64
65
66
# File 'lib/cisco_acl_intp/parser_api.rb', line 60

def acl_arg_err_message(err, pos_str)
  [
    'Parse aborted. Found acl argment error:',
    "  #{err.message}",
    "  #{pos_str}"
  ].join("\n")
end