1 2 3 4
private static Exception GetLastError() { return {{ exception_name }}.FromLastError("Unknown error"); }