18 lines
615 B
C#
18 lines
615 B
C#
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) { }
|
|
}
|
|
} |