/// <summary>
 /// The get exception.
 /// </summary>
 /// <param name="baseErrorCode">
 /// The base error code.
 /// </param>
 /// <param name="external">
 /// The external.
 /// </param>
 /// <param name="message">
 /// The message.
 /// </param>
 /// <returns>
 /// The <see cref="Exception"/>.
 /// </returns>
 public Exception GetException(Enumeration <int> baseErrorCode, External external, string message = DefaultErrorMessage)
 {
     return(this.BuildException(
                HttpStatusCode.InternalServerError,
                new List <ExceptionErrorMessageBase> {
         external
     },
                baseErrorCode,
                message));
 }
 /// <summary>
 /// The get exception.
 /// </summary>
 /// <param name="external">
 /// The external.
 /// </param>
 /// <param name="message">
 /// The message.
 /// </param>
 /// <returns>
 /// The <see cref="Exception"/>.
 /// </returns>
 public Exception GetException(External external, string message = DefaultErrorMessage)
 {
     return(this.GetException(BaseErrorCodes.External, external, message));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExceptionParams"/> class.
 /// </summary>
 /// <param name="errorList">
 /// The error list.
 /// </param>
 /// <param name="baseErrorCode">
 /// The base error code.
 /// </param>
 /// <param name="InnerException">
 /// The inner exception.
 /// </param>
 public ExceptionParams(List <string> errorList, BaseErrorCode baseErrorCode, External InnerException)
 {
     this.ErrorList      = errorList;
     this.BaseErrorCode  = baseErrorCode;
     this.InnerException = InnerException;
 }