2
0

CompilationException.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //
  2. // System.Web.Compilation.CompilationException
  3. //
  4. // Authors:
  5. // Gonzalo Paniagua Javier ([email protected])
  6. //
  7. // (C) 2002,2003 Ximian, Inc (http://www.ximian.com)
  8. //
  9. using System;
  10. using System.CodeDom.Compiler;
  11. using System.Web;
  12. namespace System.Web.Compilation
  13. {
  14. internal class CompilationException : HtmlizedException
  15. {
  16. string filename;
  17. string errors;
  18. string file;
  19. public CompilationException (string filename, string errors, string file)
  20. {
  21. this.filename = filename;
  22. this.errors = errors;
  23. this.file = file;
  24. }
  25. public override string FileName {
  26. get { return filename; }
  27. }
  28. public override string Title {
  29. get { return "Compilation Error"; }
  30. }
  31. public override string Description {
  32. get {
  33. return "Error compiling a resource required to service this request. " +
  34. "Review your source file and modify it to fix this error.";
  35. }
  36. }
  37. public override string ErrorMessage {
  38. get { return errors; }
  39. }
  40. public string File {
  41. get { return file; }
  42. }
  43. }
  44. }