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