Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 public EmulatorException(Microsoft.WindowsAzure.Storage.Emulator.Controller.EmulatorErrorCode errorCode, string message, Exception inner) : base(EmulatorException.GetFormatedMessage(errorCode, message), inner)
 {
     this.EmulatorErrorCode = errorCode;
 }