Exemplo n.º 1
0
 /// <summary>
 /// Initiate the exception with the code and parameters
 /// </summary>
 /// <param name="codMessage">The code of the message</param>
 /// <param name="args">The parameters</param>
 public ScrapException(string codMessage, params object[] args) : base(SrsExceptionUtils.GetMessage(codMessage, args))
 {
     this.Parameters  = args;
     this.CodeMessage = codMessage;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initiate the exception with the code
 /// </summary>
 /// <param name="codMessage">The code of the message</param>
 public ScrapException(string codMessage) : base(SrsExceptionUtils.GetMessage(codMessage))
 {
     this.CodeMessage = codMessage;
 }