public void CopyParamFrom(Out123 other) { Out123.Errors error = Out123NativeMethods.ParamFrom(handle, other.handle); if (error != Out123.Errors.OK) { throw new Out123.ErrorException(error); } }
public ErrorException(Out123 handle) : base(LastErrorFrom(handle)) { }
private static string LastErrorFrom(Out123 handle) { return("[" + handle.LastErrorCode() + "][" + handle.LastErrorString() + "]"); }