public int Check(int statusCode) { Exception error; var result = Check(statusCode, out error); if (error != null) { throw error; } return statusCode; }