$badminton_date = new GroupProposedDate();
			}
			else {
				throw new OutOfBoundsException('OutOfBoundsException occured, user is not in group');
			}
		}
		$create_result = $user->propose_badminton_date($badminton_date);
		if ($create_result) {
			http_response_code(200);
			echo json_encode($create_result, JSON_PRETTY_PRINT);
		}
		else {
			throw new RuntimeException('Runtime error occured, could not create the date for some reason');
		}
	}
	else {
		throw new UnexpectedValueException('UnexpectedValueException occured on request');
	}
}
catch (UnexpectedValueException $e) {
	http_response_code(400);
	Database::print_exception($e);
}
catch (RuntimeException $e) {
	http_response_code(400);
	Database::print_exception($e);
}
catch (OutOfBoundsException $e) {
	http_response_code(400);
	Database::print_exception($e);
}