class · System

Exception

public class Exception
Kind
class
Namespace
System
Assembly
System.Core
Access
public
Source file
Errors.ant

Inheritance

Base classes
Any Exception
Derived types
ArgumentError FormatError IOError IndexError InvalidCastError InvalidOperationError KeyNotFoundError MissingMemberError NotSupportedError OverflowError

Constructors

new()
#
new(str message)
#

Properties

str Message { get; }
#

read-only

Methods

override ToString() : str
#

override

Private and internal members (1)

str message
#

private

Inherited members (4)

Source

Exception as Antril, decompiled from its Larva HIR.

System.Exception.ant
// System.Exception — System.Core (decompiled from Larva HIR)

into namespace System
{
	public class Exception
	{
		str message;

		public:
			new()
			{
				message = "";
			}

			new(str message)
			{
				this.message = message;
			}

			override ToString() : str => message.Length == 0 ? "System.Exception" : "System.Exception: " + message;

			str Message
			{
				get => message;
			}
	}
}
Esc