2
using System.Runtime.Serialization;
4
namespace ServiceStack.Messaging
7
/// Base Exception for all ServiceStack.Messaging exceptions
9
public class MessagingException
12
public MessagingException()
16
public MessagingException(string message)
21
public MessagingException(string message, Exception innerException)
22
: base(message, innerException)
26
#if !SILVERLIGHT && !MONOTOUCH && !XBOX
27
protected MessagingException(SerializationInfo info, StreamingContext context)
32
public virtual MessageError ToMessageError()
34
return new MessageError {
35
ErrorCode = GetType().Name,
36
Message = this.Message,
37
StackTrace = this.ToString(), //Also includes inner exception