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).

Tipo
static class
Espacio de nombres
System
Ensamblado
System.Core
Acceso
public, static, abstract
Archivo fuente
List.ant

Herencia

Clases base
Any Fail

Métodos

Index()
#

static

KeyNotFound()
#

static

Overflow()
#

static

What checked arithmetic calls when a result does not fit.

Miembros heredados (5)

Código fuente

Fail en Antril, descompilado a partir de su 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