public class IndentationError extends SyntaxError
Exception thrown when source code has an invalid indentation level or is missing an indented block. This is a specialized SyntaxError: a handler for SyntaxError also catches IndentationError.
try:
Application.compile("if true:\npass\n")
catch error as IndentationError:
print(error.message)| Modifier and Type | Member | Description |
|---|---|---|
| public | IndentationErrorIndentationError(message as String = "Indentation error") |
Creates an indentation diagnostic. |