You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I saw this great video about presenting the toolkit which was awesome but for Guard, there is one thing which is worrying.
32:00 your guard outputs an exception where in the message, there is Arg_ParamName_Name and ArgumentOutOfRange_ActualValue instead of the property name and the actual value we need to fix, how can we retrieve the actual property name and actual value which caused the exception?'
Edit:
I noticed that both the argument name and the value which caused the exception are actually visible in the exception message, but then what is the purpose of the Arg_ParamName_Name and ArgumentOutOfRange_ActualValue at the end of the exception message?
I have experienced these exceptions also with EF Core - when something is null in a query and I expect it not to be null, it just outputs "value cannot be null Arg_ParamName_Name" .which is really unhelpful and in that case, it does not tell the name of the property unless open in the details window.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi I saw this great video about presenting the toolkit which was awesome but for Guard, there is one thing which is worrying.
32:00 your guard outputs an exception where in the message, there is
Arg_ParamName_Name
andArgumentOutOfRange_ActualValue
instead of the property name and the actual value we need to fix, how can we retrieve the actual property name and actual value which caused the exception?'Edit:
I noticed that both the argument name and the value which caused the exception are actually visible in the exception message, but then what is the purpose of the
Arg_ParamName_Name
andArgumentOutOfRange_ActualValue
at the end of the exception message?I have experienced these exceptions also with EF Core - when something is null in a query and I expect it not to be null, it just outputs "
value cannot be null Arg_ParamName_Name
" .which is really unhelpful and in that case, it does not tell the name of the property unless open in the details window.Thank you.
Beta Was this translation helpful? Give feedback.
All reactions