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)); } }
public ConfigHubException(ConfigHubExceptionType errType, string message, Exception innerException) : base("#" + errType.ToString() + "-" + message + (ConfigHub.ConfigFilePath != @"\" ? " (" + ConfigHub.ConfigFilePath + ")" : ""), innerException) { }