checkpoint
This commit is contained in:
18
Alpm/Exception.cs
Normal file
18
Alpm/Exception.cs
Normal 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) { }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user