checkpoint

This commit is contained in:
2020-04-29 13:10:17 -04:00
parent c1618deb83
commit 64f7dd4b7d
54 changed files with 294 additions and 263 deletions

18
Alpm/Exception.cs Normal file
View File

@@ -0,0 +1,18 @@
using System;
using System.Runtime.Serialization;
using Foodsoft.Alpm;
namespace Foodsoft.Alpm
{
[Serializable()]
public class Exception : System.Exception
{
public Exception() { }
internal Exception(SafeAlpmHandle handle) : base(alpm.alpm_strerror(alpm.alpm_errno(handle))) { }
public Exception(ErrNo errno) : base(alpm.alpm_strerror(errno)) { }
public Exception(ErrNo errno, System.Exception inner) : base(alpm.alpm_strerror(errno), inner) { }
protected Exception(SerializationInfo info,
StreamingContext context) : base(info, context) { }
}
}