toString

Summary

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

Usage

public override string toString()

Returns

The string representation of the error.

Description

Returns the string representation of the error in the format:

FQN: ERROR MESSAGE

Examples

Basic Usage
1
2
3
4
5
6
7
8
import System;
 
try {
    throw new System.Error("This is a test.");
}
catch(System.Error e) {
    Console.error(e); // "System.Error: This is a test."
}

Share

HTML | BBCode | Direct Link