Exception

Summary

An exception (represented via the System.Exception class) represents an error incident that an application may experience during execution.

Description

An exception (represented via the System.Exception class) represents an error incident that an application may experience during execution.

Examples

Basic Usage
1
2
3
4
5
6
7
8
import System;
 
try {
    throw new System.Exception("Exception message");
}
catch(System.Exception e) {
    Console.error(e);
}

Methods

  • Exception (Constructor)

    Constructs a System.Exception object.

  • getMessage

    Returns a detailed message relating to the exception.

  • toString

    Returns the string representation of the exception in the format: FQN: EXCEPTION MESSAGE

Share

HTML | BBCode | Direct Link