|
// Stephen Toub
// stoub@microsoft.com
// SecureRemotingException.cs
using System;
using System.Security.Permissions;
using System.Runtime.Remoting;
using System.Runtime.Serialization;
namespace MsdnMag.Remoting
{
/// <summary>The exception that is thrown when something goes wrong in the secure remoting channel.</summary>
[Serializable]
public class SecureRemotingException : RemotingException, ISerializable
{
#region Construction and Serialization
/// <summary>Initializes a new instance of the SecureRemotingException class with default properties.</summary>
public SecureRemotingException()
{
}
/// <summary>Initializes a new instance of the SecureRemotingException class with the given message.</summary>
/// <param name="message">The error message that explains why the exception occurred.</param>
public SecureRemotingException(string message) :
base(message)
{
}
/// <summary>Initializes a new instance of the SecureRemotingException class with the specified properties.</summary>
/// <param name="message">The error message that explains why the exception occurred.</param>
/// <param name="innerException">The exception that is the cause of the current exception.</param>
public SecureRemotingException(string message, System.Exception innerException) :
base(message, innerException)
{
}
/// <summary>Initializes the exception with serialized information.</summary>
/// <param name="info">Serialization information.</param>
/// <param name="context">Streaming context.</param>
protected SecureRemotingException(SerializationInfo info, StreamingContext context) :
base(info, context)
{
}
/// <summary>Provides serialization functionality.</summary>
/// <param name="info">Serialization information.</param>
/// <param name="context">Streaming context.</param>
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
}
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I am a consultant, trainer, software archtect/engineer, since the early 1980s, working in the greater area of Boston, MA, USA.
My work comprises the entire spectrum of software, shrink-wrapped applications, IT client-server, systems and protocol related work, compilers and operating systems, and more ....
I am currently focused on platform development for distributed computing in service oriented data centers.