errors.QueryFileError()

new QueryFileError()

QueryFileError class, available from the errors namespace.

This type represents all errors related to QueryFile.

Properties:
Name Type Description
name string

Standard Error property - error type name = QueryFileError.

message string

Standard Error property - the error message.

stack string

Standard Error property - the stack trace.

file string

File path/name that was passed into the QueryFile constructor.

options object

Set of options that was used by the QueryFile object.

error SQLParsingError

Internal SQLParsingError object.

It is set only when the error was thrown by pg-minify while parsing the SQL file.

Source:
See:

Extends

Methods

toString(levelopt) → {string}

Creates a well-formatted multi-line string that represents the error.

It is called automatically when writing the object into the console.

Parameters:
Name Type Attributes Default Description
level number <optional>
0

Nested output level, to provide visual offset.

Source:
Returns:
Type
string