getMessage

Summary

Returns a detailed message relating to the error.

Usage

public virtual string getMessage()

Returns

The error detail message.

Description

Returns a detailed message relating to the error.

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.getMessage()); // "This is a test."
}

Share

HTML | BBCode | Direct Link