I suggest you ...

Make it mandotory to Handle Exceptions...

This suggestion is migrated to Developer Community. Please use below link to view the current status.
https://developercommunity.visualstudio.com/content/idea/351749/make-it-mandotory-to-handle-exceptions.html
Hello,
I am Computer Engineer from Turkey. Graduated From Istanbul Technical University In 2015.
I was Intern at Microsoft Turkey in 2012 and worked at Sony Turkey, Siemens, Asseco SEE..

My suggestion is make Exception Handling or changing signature mandatory..
For example, if I throw an Exception in my method, I must decleare that this method may throws an Exception so a user can see the type of exceptions that can be thrown from this method.

This is the case in JAVA.
Example:
public void getName() throws NullPointerException, IOException{
}
if I use getName() method in anywhere, compiler tells me that either handle NullPointerException or add throws NullPointerException on your method signature so a user can see the type of the exception that can be thrown.

Thanks

4 votes
Vote
Sign in
(thinking…)
Password icon
Signed in as (Sign out)
You have left! (?) (thinking…)
Hasan Kaya shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

0 comments

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base