Example #1
0
 public static ConfigHubException BuildException(ConfigHubExceptionType exceptionType, string message, Exception innerException)
 {
     if (!ConfigHub.Verbose || innerException == null)
     {
         return(new ConfigHubException(exceptionType, message));
     }
     else
     {
         return(new ConfigHubException(exceptionType, message, innerException));
     }
 }
Example #2
0
 public ConfigHubException(ConfigHubExceptionType errType, string message, Exception innerException) : base("#" + errType.ToString() + "-" + message + (ConfigHub.ConfigFilePath != @"\" ? " (" + ConfigHub.ConfigFilePath + ")" : ""), innerException)
 {
 }