For example:
foo(int x, int y) // get request
{} /api/foo?x=111And if user is forgot to pass `y` we will get error in the browser. What is the right way to handle curch cases?
Wrap is with try-catch looks wrong.
Suliman via Digitalmars-d-learn Mon, 29 May 2017 05:26:10 -0700
For example:
foo(int x, int y) // get request
{} /api/foo?x=111And if user is forgot to pass `y` we will get error in the browser. What is the right way to handle curch cases?
Wrap is with try-catch looks wrong.