static class · System

Fail

public static class Fail

Throws the library's errors from one place, so the methods that check stay small (and are inlined).

Kind
static class
Namespace
System
Assembly
System.Core
Access
public, static, abstract
Source file
List.ant

Inheritance

Base classes
Any Fail

Methods

Index()
#

static

KeyNotFound()
#

static

Overflow()
#

static

What checked arithmetic calls when a result does not fit.

Inherited members (5)

Source

Fail as Antril, decompiled from its Larva HIR.

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

into namespace System
{
	/// Throws the library's errors from one place, so the methods that check stay small (and are inlined).
	public static class Fail
	{
		public:
			[NoInline]
			Index()
			{
				throw new IndexError();
			}

			[NoInline]
			KeyNotFound()
			{
				throw new KeyNotFoundError();
			}

			/// What `checked` arithmetic calls when a result does not fit.
			[NoInline]
			Overflow()
			{
				throw new OverflowError();
			}
	}
}
Esc