ErrorCode.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #region Apache License
  2. //
  3. // Licensed to the Apache Software Foundation (ASF) under one or more
  4. // contributor license agreements. See the NOTICE file distributed with
  5. // this work for additional information regarding copyright ownership.
  6. // The ASF licenses this file to you under the Apache License, Version 2.0
  7. // (the "License"); you may not use this file except in compliance with
  8. // the License. You may obtain a copy of the License at
  9. //
  10. // http://www.apache.org/licenses/LICENSE-2.0
  11. //
  12. // Unless required by applicable law or agreed to in writing, software
  13. // distributed under the License is distributed on an "AS IS" BASIS,
  14. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. // See the License for the specific language governing permissions and
  16. // limitations under the License.
  17. //
  18. #endregion
  19. using System;
  20. namespace log4net.Core
  21. {
  22. /// <summary>
  23. /// Defined error codes that can be passed to the <see cref="M:IErrorHandler.Error(string, Exception, ErrorCode)"/> method.
  24. /// </summary>
  25. /// <remarks>
  26. /// <para>
  27. /// Values passed to the <see cref="M:IErrorHandler.Error(string, Exception, ErrorCode)"/> method.
  28. /// </para>
  29. /// </remarks>
  30. /// <author>Nicko Cadell</author>
  31. public enum ErrorCode : int
  32. {
  33. /// <summary>
  34. /// A general error
  35. /// </summary>
  36. GenericFailure = 0,
  37. /// <summary>
  38. /// Error while writing output
  39. /// </summary>
  40. WriteFailure,
  41. /// <summary>
  42. /// Failed to flush file
  43. /// </summary>
  44. FlushFailure,
  45. /// <summary>
  46. /// Failed to close file
  47. /// </summary>
  48. CloseFailure,
  49. /// <summary>
  50. /// Unable to open output file
  51. /// </summary>
  52. FileOpenFailure,
  53. /// <summary>
  54. /// No layout specified
  55. /// </summary>
  56. MissingLayout,
  57. /// <summary>
  58. /// Failed to parse address
  59. /// </summary>
  60. AddressParseFailure
  61. }
  62. }