private static string GetFormatedMessage(Microsoft.WindowsAzure.Storage.Emulator.Controller.EmulatorErrorCode errorCode, string message) { if (!string.IsNullOrEmpty(message)) { return(message); } return(Resource.ResourceManager.GetString(string.Format("{0}{1}", "EmulatorErrorMessage", errorCode.ToString()))); }
protected EmulatorException(SerializationInfo info, StreamingContext context) : base(info, context) { if (info == null) { throw new ArgumentNullException("info"); } this.EmulatorErrorCode = (Microsoft.WindowsAzure.Storage.Emulator.Controller.EmulatorErrorCode)info.GetValue("this.EmulatorErrorCode", typeof(Microsoft.WindowsAzure.Storage.Emulator.Controller.EmulatorErrorCode)); }
public EmulatorException(Microsoft.WindowsAzure.Storage.Emulator.Controller.EmulatorErrorCode errorCode, string message, Exception inner) : base(EmulatorException.GetFormatedMessage(errorCode, message), inner) { this.EmulatorErrorCode = errorCode; }
public EmulatorException(Microsoft.WindowsAzure.Storage.Emulator.Controller.EmulatorErrorCode errorCode, Exception inner) : this(errorCode, string.Empty, inner) { }
public EmulatorException(Microsoft.WindowsAzure.Storage.Emulator.Controller.EmulatorErrorCode errorCode, string message) : this(errorCode, message, null) { }
public EmulatorException() { this.EmulatorErrorCode = Microsoft.WindowsAzure.Storage.Emulator.Controller.EmulatorErrorCode.UnknownError; }