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
--exception string Exception class inherit java.lang.Exception (required)
you should give the exception name you expented, like Exception,
so you can change your command like this:
./blade create servlet throwCustomException --exception Exception --servletpath /app/list.json
I mean --exception is followed by no arguments and can be created successfully.
But it will match all HTTP requests and will throw an exception (the specified exception class could not be found and then throw a runtimeException).
However, I just want to make an interface throw an exception, without parameters, should tell me that the command created is not legal.
bug report : params parse error
Describe what happened (or what feature you want)
When I execute the following command,--exception no assignment,In theory, it should report an error, but the execution is successful.
And then, all requests will be given an error.
![image](https://user-images.githubusercontent.com/22674253/62762678-3eb24800-babc-11e9-86db-8a5397e77290.png)
I think it is a parameter parsing error.This is very dangerous in the production environment.
![image](https://user-images.githubusercontent.com/22674253/62762780-7d480280-babc-11e9-8770-ebd27ed9f33a.png)
The text was updated successfully, but these errors were encountered: