private void LogErrorAndThrowException(EmulatorErrorCode errorCode, string errorMessage = null) { EmulatorException emulatorException = new EmulatorException(errorCode, errorMessage); this.LogError(emulatorException.Message, new object[0]); this.LogError(Resource.ActionsFailed, new object[0]); throw emulatorException; }
public EmulatorException(Microsoft.WindowsAzure.Storage.Emulator.Controller.EmulatorErrorCode errorCode, string message, Exception inner) : base(EmulatorException.GetFormatedMessage(errorCode, message), inner) { this.EmulatorErrorCode = errorCode; }