summary refs log tree commit diff
path: root/crypto/src/openpgp/PgpException.cs
blob: 230dab86e2706e7e232f593cd9aef70729a9eb34 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System;

namespace Org.BouncyCastle.Bcpg.OpenPgp
{
	/// <remarks>Generic exception class for PGP encoding/decoding problems.</remarks>
#if !(NETCF_1_0 || NETCF_2_0 || SILVERLIGHT || PORTABLE)
    [Serializable]
#endif
    public class PgpException
		: Exception
	{
		public PgpException() : base() {}
		public PgpException(string message) : base(message) {}
		public PgpException(string message, Exception exception) : base(message, exception) {}

		[Obsolete("Use InnerException property")]
		public Exception UnderlyingException
		{
			get { return InnerException; }
		}
	}
}