Error

Summary

An error (represented via the System.Error class) represents a serious incident that applications should not try to recover from via catch.

Description

An error (represented via the System.Error class) represents a serious incident that applications should not try to recover from via catch.

Examples

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

Methods

  • Error (Constructor)

    Constructs a System.Error object.

  • getMessage

    Returns a detailed message relating to the error.

  • toString

    Returns the string representation of the error in the format: FQN: ERROR MESSAGE

Share

HTML | BBCode | Direct Link