Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Rethrow with generated message #72

Open
arteny opened this issue May 15, 2024 · 0 comments
Open

Missing Rethrow with generated message #72

arteny opened this issue May 15, 2024 · 0 comments

Comments

@arteny
Copy link

arteny commented May 15, 2024

Throw method accepts only parameter name argument, so i can't rethrow with my custom exception but with lib generated text, do i need to do

		try
		{
			size
				.Throw()
				.IfGreaterThan(maxSize);
		}
		catch (Exception e)
		{
			throw new MyException(e.Message);
		}

is it possilbe to add generated exception also as argument for Throw?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant