MongoServices 0.2.0
A Service/Repository Framework for mongoDB
C:/Development/MongoServices/Source/MongoServices/Exceptions/MongoCollectionNameMissingException.cs
Go to the documentation of this file.
00001 using System;
00002 using System.Collections.Generic;
00003 using System.Linq;
00004 using System.Text;
00005 using System.Runtime.Serialization;
00006 
00007 namespace MongoServices
00008 {
00012         [Serializable]
00013         public class MongoCollectionNameMissingException : ApplicationException
00014         {
00015                 #region Private Constructors
00016 
00017 
00018 
00019                 private MongoCollectionNameMissingException()
00020                 {
00021                 }
00022                 #endregion
00023 
00024                 #region Public Constructors
00025 
00026 
00027 
00028 
00029                 public MongoCollectionNameMissingException(Type mongoServicesModelType)
00030                         : base(MongoCollectionNameMissingException.FormatMessage(mongoServicesModelType))
00031                 {
00032                 }
00033 
00039                 public MongoCollectionNameMissingException(Type mongoServicesModelType, Exception innerException)
00040                         : base(MongoCollectionNameMissingException.FormatMessage(mongoServicesModelType), innerException)
00041                 {
00042                 }
00043                 #endregion
00044 
00045                 #region Protected Constructors
00046 
00047 
00048 
00049 
00050 
00051                 protected MongoCollectionNameMissingException(SerializationInfo info, StreamingContext context)
00052                         : base(info, context)
00053                 {
00054                 }
00055                 #endregion
00056 
00057                 #region Protected Static Methods
00058 
00059 
00060 
00061 
00062 
00063                 protected static string FormatMessage(Type mongoServicesModelType)
00064                 {
00065                         return "The " + mongoServicesModelType.FullName + " model does not specify the MongoCollectionNameAttribute";
00066                 }
00067                 #endregion
00068         }
00069 }
 All Classes Namespaces Files Functions Enumerations Properties