The Labs \ Source Viewer \ SSCLI \ System.Reflection \ CustomAttributeFormatException

  1. // ==++==
  2. //
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. //
  14. // ==--==
  15. ////////////////////////////////////////////////////////////////////////////////
  16. ////////////////////////////////////////////////////////////////////////////////
  17. //
  18. // CustomAttributeFormatException is thrown when the binary format of a
  19. // custom attribute is invalid.
  20. //
  21. // Date: March 98
  22. //
  23. namespace System.Reflection
  24. {
  25.     using System;
  26.     using ApplicationException = System.ApplicationException;
  27.     using System.Runtime.Serialization;
  28.     [Serializable()]
  29.     [System.Runtime.InteropServices.ComVisible(true)]
  30.     public class CustomAttributeFormatException : FormatException
  31.     {
  32.        
  33.         public CustomAttributeFormatException() : base(Environment.GetResourceString("Arg_CustomAttributeFormatException"))
  34.         {
  35.             SetErrorCode(__HResults.COR_E_CUSTOMATTRIBUTEFORMAT);
  36.         }
  37.        
  38.         public CustomAttributeFormatException(string message) : base(message)
  39.         {
  40.             SetErrorCode(__HResults.COR_E_CUSTOMATTRIBUTEFORMAT);
  41.         }
  42.        
  43.         public CustomAttributeFormatException(string message, Exception inner) : base(message, inner)
  44.         {
  45.             SetErrorCode(__HResults.COR_E_CUSTOMATTRIBUTEFORMAT);
  46.         }
  47.        
  48.         protected CustomAttributeFormatException(SerializationInfo info, StreamingContext context) : base(info, context)
  49.         {
  50.         }
  51.        
  52.     }
  53. }

Developer Fusion