JsSyntaxErrorException Class
The exception thrown when a source text is not a valid script or module (an early error or a syntax error).
public sealed class JsSyntaxErrorException : Exception- Inheritance
ExceptionJsSyntaxErrorException
Constructors
| Name | Description |
|---|---|
| JsSyntaxErrorException() | Initializes a new instance of the JsSyntaxErrorException class. |
| JsSyntaxErrorException(string) | Initializes a new instance of the JsSyntaxErrorException class with a message. |
| JsSyntaxErrorException(string, Exception) | Initializes a new instance of the JsSyntaxErrorException class with a message and an inner exception. |
| JsSyntaxErrorException(string, string?, int, int, int) | Initializes a new instance of the JsSyntaxErrorException class with a message and a location. |
JsSyntaxErrorException overloads
JsSyntaxErrorException()
JsSyntaxErrorException.csInitializes a new instance of the JsSyntaxErrorException class.
public JsSyntaxErrorException()JsSyntaxErrorException(string)
JsSyntaxErrorException.csInitializes a new instance of the JsSyntaxErrorException class with a message.
public JsSyntaxErrorException(string message)Parameters
messagestring
JsSyntaxErrorException(string, Exception)
JsSyntaxErrorException.csInitializes a new instance of the JsSyntaxErrorException class with a message and an inner exception.
JsSyntaxErrorException(string, string?, int, int, int)
JsSyntaxErrorException.csProperties
| Name | Description |
|---|---|
| Column | Gets the 1-based column of the error (in UTF-16 code units). |
| Line | Gets the 1-based line of the error. |
| Offset | Gets the offset of the error in the source text. |
| Url | Gets the URL of the source, if any. |