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
-
AnyFail
Métodos
Miembros heredados (5)
GetTypemétodo de AnyUndescribedmétodo de AnyToStringmétodo de AnyHashmétodo de Anydestroymétodo de Any
Código fuente
Fail en Antril, descompilado a partir de su Larva HIR.
// 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();
}
}
}