static string GetFullMessage(OsaError error, string returnValue)
 {
     if (!string.IsNullOrEmpty(returnValue))
     {
         return(string.Format("{0}: {1}", error, returnValue));
     }
     return(error.ToString());
 }
示例#2
0
 public AppleScriptException(OsaError error, string message) : base(message)
 {
     ErrorCode = error;
 }
 public AppleScriptException(OsaError error, string returnValue)
     : base(GetFullMessage(error, returnValue))
 {
     ErrorCode   = error;
     ReturnValue = returnValue;
 }