mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
17
brutal.notcurses/Brutal.NotCurses/NcResultException.cs
Normal file
17
brutal.notcurses/Brutal.NotCurses/NcResultException.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
namespace Brutal.NotCursesApi;
|
||||
|
||||
/// <summary>
|
||||
/// Thrown by generated wrappers when a notcurses C function returns a failure result.
|
||||
/// </summary>
|
||||
public class NcResultException : Exception
|
||||
{
|
||||
public int Result { get; }
|
||||
public string FunctionName { get; }
|
||||
|
||||
public NcResultException(string functionName, int result)
|
||||
: base($"{functionName} failed with result {result}.")
|
||||
{
|
||||
FunctionName = functionName;
|
||||
Result = result;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue