public class Exception extends Object:
Base class for Klyn exceptions. A throws clause documents possible failures; callers may propagate them or handle them with try/catch.
try:
throw Exception("Cannot continue")
catch error as Exception:
print(error.message)| Modifier and Type | Member | Description |
|---|---|---|
| public | Exception | Constructor for Exception. |
| Modifier and Type | Member | Description |
|---|---|---|
| public override method | toStringtoString() as String: |
Returns the string representation of this exception. |