ExceptionFactory.cs 649 B

123456789101112131415161718
  1. using Quadarax.Foundation.Core.Exceptions;
  2. namespace Quadarax.Application.QLiberace.Common
  3. {
  4. public static class ExceptionFactory
  5. {
  6. private static ExceptionLibrary _instance = new ExceptionLibrary();
  7. public static CodeException CreateException(int code, params string[] messageParams)
  8. {
  9. return _instance.CreateException(code, messageParams);
  10. }
  11. public static CodeException CreateException(int code, Exception innerException, params string[] messageParams)
  12. {
  13. return _instance.CreateException(code, innerException, messageParams);
  14. }
  15. }
  16. }