Home Reference Source
public class | since 0.1.0 | source

CompilerError

Extends:

Error → CompilerError

Error used by compiler

Constructor Summary

Public Constructor
public

constructor(message: string, node: Object)

since 0.1.0

Member Summary

Public Members
public
public

Method Summary

Public Methods
public

wrap(inner: Object)

Determines if the compilation failure was due to an error during parsing.

since 0.1.0

Public Constructors

public constructor(message: string, node: Object) since 0.1.0 source

Params:

NameTypeAttributeDescription
message string

Message used in error

node Object

(Optional) node from esprima tree used to define location information.

Public Members

public location: Object source

public name: string source

Public Methods

public wrap(inner: Object) since 0.1.0 source

Determines if the compilation failure was due to an error during parsing. Sets location info from inner error if so.

Params:

NameTypeAttributeDescription
inner Object

Error from esprima.