Creates an exception.
Parameters: name - The name of the element where the error is located. Parameters: message - A message describing what went wrong.
Creates an exception.
Parameters: name - The name of the element where the error is located. Parameters: lineNr - The number of the line in the input. Parameters: message - A message describing what went wrong.