PsProcessProviderException.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using Quadarax.Foundation.Core.Attributes;
  2. using Quadarax.Foundation.Core.Exceptions;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace qdr.fnd.core.pqueue.Exceptions
  9. {
  10. public class PsProcessProviderException: CodeException<PsProcessProviderException.ErrorCodes>
  11. {
  12. #region *** Error Codes ***
  13. public enum ErrorCodes : int
  14. {
  15. [ErrorMessage("Cannot start, process provider '{0}' (ItemId='{1}') is already running.")]
  16. ProcessProviderIsRunning = 8000,
  17. [ErrorMessage("Cannot stop, process provider '{0}' (ItemId='{1}') is not running.")]
  18. ProcessProviderNotRunning = 8001,
  19. [ErrorMessage("Process provider '{0}' (ItemId='{1}') has not defined argument '{2}'.")]
  20. ProcessProviderNotDefinedArgument = 8002,
  21. }
  22. #endregion
  23. #region *** Constructors ***
  24. /// <inheritdoc />
  25. public PsProcessProviderException(ErrorCodes code, Exception innerException) : base(code, innerException)
  26. {
  27. }
  28. /// <inheritdoc />
  29. public PsProcessProviderException(ErrorCodes code) : base(code)
  30. {
  31. }
  32. /// <inheritdoc />
  33. public PsProcessProviderException(ErrorCodes code, params object[] messageArguments) : base(code, messageArguments)
  34. {
  35. }
  36. /// <inheritdoc />
  37. public PsProcessProviderException(ErrorCodes code, Exception innerException, params object[] messageArguments) : base(code, innerException, messageArguments)
  38. {
  39. }
  40. #endregion
  41. }
  42. }