DuplicateBsonMemberMapAttributeException.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* Copyright 2010-2014 MongoDB Inc.
  2. *
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License.
  14. */
  15. using System;
  16. namespace MongoDB.Bson
  17. {
  18. /// <summary>
  19. /// Indicates that an attribute restricted to one member has been applied to multiple members.
  20. /// </summary>
  21. [Serializable]
  22. public class DuplicateBsonMemberMapAttributeException : BsonException
  23. {
  24. // constructors
  25. /// <summary>
  26. /// Initializes a new instance of the <see cref="DuplicateBsonMemberMapAttributeException" /> class.
  27. /// </summary>
  28. /// <param name="message">The message.</param>
  29. public DuplicateBsonMemberMapAttributeException(string message)
  30. : base(message)
  31. {
  32. }
  33. /// <summary>
  34. /// Initializes a new instance of the <see cref="DuplicateBsonMemberMapAttributeException" /> class.
  35. /// </summary>
  36. /// <param name="message">The message.</param>
  37. /// <param name="inner">The inner.</param>
  38. public DuplicateBsonMemberMapAttributeException(string message, Exception inner)
  39. : base(message, inner)
  40. {
  41. }
  42. /// <summary>
  43. /// Initializes a new instance of the <see cref="DuplicateBsonMemberMapAttributeException" /> class.
  44. /// </summary>
  45. /// <param name="info">The info.</param>
  46. /// <param name="context">The context.</param>
  47. protected DuplicateBsonMemberMapAttributeException(
  48. System.Runtime.Serialization.SerializationInfo info,
  49. System.Runtime.Serialization.StreamingContext context)
  50. : base(info, context)
  51. {
  52. }
  53. }
  54. }