CompilationException.cs 680 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // System.Web.Compilation.CompilationException
  3. //
  4. // Authors:
  5. // Gonzalo Paniagua Javier ([email protected])
  6. //
  7. // (C) 2002 Ximian, Inc (http://www.ximian.com)
  8. //
  9. using System;
  10. namespace System.Web.Compilation
  11. {
  12. internal class CompilationException : Exception
  13. {
  14. CompilationResult result;
  15. public CompilationException (CompilationResult result)
  16. {
  17. this.result = result;
  18. }
  19. public CompilationException (string msg, CompilationResult result)
  20. {
  21. this.result = result;
  22. }
  23. public CompilationException (CompilationCacheItem item)
  24. {
  25. this.result = item.Result;
  26. }
  27. public override string Message {
  28. get {
  29. return result.ToString ();
  30. }
  31. }
  32. }
  33. }