InvalidQueryException (Common API)

Overview - Common API - Client API - Admin API - Runtime API

InvalidQueryException

Exception thrown for invalid queries

Details

  • Extends BaseFileException

  • Module common

See also

  • See (see {@link basefileexception)

Method Summary

Name Returns Description
constructor void Create an InvalidQueryException.
getQueryFile QueryFile Returns the query file associated with the exception or null

Method Details

new InvalidQueryException()

Create an InvalidQueryException.

Parameters

Name Type Optional Description
message String false the message for the exception
queryFile QueryFile true the optional queryFile associated with the exception
fileLocation Object true location details of the error within the model file.

Sub-options

Name Type Optional Description
fileLocation.start.line String false start line of the error location.
fileLocation.start.column String false start column of the error location.
fileLocation.end.line String false end line of the error location.
fileLocation.end.column String false end column of the error location.

getQueryFile

QueryFile getQueryFile( )

Returns the query file associated with the exception or null

Returns

QueryFile - the optional query file associated with the exception

Parameters

No parameters