Lines Matching refs:GNException
22 class GNException(Exception): class
34 raise GNException("Trying to print a string with a newline in it.")
52 raise GNException("Attempting to recursively print a dictionary.")
56 raise GNException("Dictionary key is not a string.")
63 raise GNException("Unsupported type when printing to GN.")
194 raise GNException("Trailing input after parsing:\n " +
210 raise GNException("Unexpected token: " + self.input[self.cur:])
223 raise GNException("Expected input to parse.")
237 raise GNException("Unexpected token: " + self.input[self.cur:])
244 raise GNException("Expected an identifier: " + self.input[self.cur:])
260 raise GNException('Expected number but got nothing.')
272 raise GNException("Not a valid number.")
278 raise GNException('Expected string but got nothing.')
281 raise GNException('Expected string beginning in a " but got:\n ' +
290 raise GNException("String ends in a backslash in:\n " +
295 raise GNException('Unterminated string:\n ' + self.input[begin:])
305 raise GNException('Expected list but got nothing.')
309 raise GNException("Expected [ for list but got:\n " +
314 raise GNException("Unterminated list:\n " + self.input)
324 raise GNException("List items not separated by comma.")
338 raise GNException("Unterminated list:\n " + self.input)