Exceptions.SyntaxErrorException
(in ./Carbon/Exceptions/SyntaxErrorException.lua)An exception to be generated when a syntax error is encountered
Inherits Exception
Methods
class public SyntaxErrorException:New(string err, [unumber line]
)
Returns SyntaxErrorException
class public SyntaxErrorException:PlacementNew(SyntaxErrorException? out, string err, [unumber line]
)
Returns SyntaxErrorException
object public SyntaxErrorException:Init(string err, [unumber line]
)
Returns void
- required
err
: The reason for the error. - optional
line
: The line the error was found on. Defaults to 1.
Generates a new SyntaxErrorException for a given syntax error.
Properties
public string
Line
The line the syntax error occured on, approximately.