mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 12:38:24 +01:00
17 lines
466 B
C#
17 lines
466 B
C#
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;
|
|
}
|
|
}
|