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
-
AnyFail
Methods
Inherited members (5)
GetTypemethod from AnyUndescribedmethod from AnyToStringmethod from AnyHashmethod from Anydestroymethod from Any
Source
Fail as Antril, decompiled from its 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();
}
}
}