PsProcessProviderException.cs 1.5 KB

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