コード例 #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;
        }
コード例 #2
0
 public EmulatorException(Microsoft.WindowsAzure.Storage.Emulator.Controller.EmulatorErrorCode errorCode, string message, Exception inner) : base(EmulatorException.GetFormatedMessage(errorCode, message), inner)
 {
     this.EmulatorErrorCode = errorCode;
 }