using System;
namespace Hast.Catapult.Exceptions;
///
/// An exception which is fired when an FpgaCoreLib function returns something other than the SUCCESS status.
///
public class CatapultFunctionResultException : Exception
{
///
/// Gets the status returned by the native function call.
///
public Constants.Catapult.Status Status { get; private set; }
public CatapultFunctionResultException() { }
public CatapultFunctionResultException(Constants.Catapult.Status status, string message)
: this(string.IsNullOrWhiteSpace(message) ? status.ToString() : message) => Status = status;
public CatapultFunctionResultException(string message)
: base(message) { }
public CatapultFunctionResultException(string message, Exception inner)
: base(message, inner) { }
}