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