Exceptions and Exception Handling in C#.Net - Part 4 | C#.NET Tutorial | Mr. Bangar Raju
Вставка
- Опубліковано 20 вер 2016
- Introduction to .NET | C#.NET Tutorial | Mr. Bangar Raju
** For Online Training Registration: goo.gl/r6kJbB ► Call: +91-8179191999
Subscribe to our channel and hit the bell 🔔🔔🔔 icon to get video updates.
💡 Visit Our Websites
For Classroom Training:
nareshit.in/c-net-training/
For Online Training:
nareshit.com/c-net-online-tra...
#c #cSharpDotnet #dotNet #course #Tutorials #Training #Videos
--------------------------
💡 About NareshIT:
"Naresh IT is having 14+ years of experience in software training industry and the best Software Training Institute for online training, classroom training, weekend training, corporate training of Hadoop, Salesforce, AWS, DevOps, Spark, Data Science, Python, Tableau, RPA , Java, C#.NET, ASP.NET, Oracle, Testing Tools, Silver light, Linq, SQL Server, Selenium, Android, iPhone, C Language, C++, PHP and Digital Marketing in USA, Hyderabad, Chennai and Vijayawada, Bangalore India which provides online training across all the locations
--------------------------
💡 Our Online Training Features:
🎈 Training with Real-Time Experts
🎈 Industry Specific Scenario’s
🎈 Flexible Timings
🎈 Soft Copy of Material
🎈 Share Videos of each and every session.
--------------------------
💡 Please write back to us at
📧 us.training@nareshit.com/ 📧 online@nareshit.com or Call us at the USA: ☎+1404-232-9879 or India: ☎ +918179191999
--------------------------
💡 Check The Below Links
► For Course Reg: goo.gl/r6kJbB
► Subscribe to Our Channel: goo.gl/q9ozyG
► Circle us on G+: plus.google.com/+NareshIT
► Like us on Facebook: / nareshit
► Follow us on Twitter: / nareshitek
► Follow us on Linkedin: goo.gl/CRBZ5F
► Follow us on Instagram: goo.gl/3UXYK3
Please Comment, Subscribe and Click Bell🔔🔔🔔 Icon for More Updates. To learn software course from our experts please register here for online training: goo.gl/HIB0wL
Sir, you provide always BEST Notes, So this is also Best :-)
Thanks for the explanation sir!
I love the sound when sir rubs both his hands. It gets me more focussed and concentrated 😁
The BEST C# training. Thank you so much Mr. Raju.
thanks alot sir...i cleared ally doubt about ecxptiona ndling thanx aain
Guruji , You are Great..
thanku sir
to clear my confusion
superb
Hi , very helpful videos , Thanks for the conceptual explanation .
My dout is ,in application exception process , how many override methods can be applicable .
Pl collaboarte .
Nice Video Sir.. Please provide a video about interface..
Sir but application exception is also showing unhandled exception?
Hi sir....How to Handle if exception occur in finally block ..plx explain sir..or anyone also..
use try and catch blocks in finally block.
You'll definitely encounter with a problem in throwing an exception. Remember to add a try and catch block, and then throw the exception. I wonder why the method in the video worked😕. No idea, just a beginner here.
String message is not overriding in vs2017
explicitly create a constructor of your CustomException and call a base class constructor
example:
public class CustomException : ApplicationException
{
public CustomException(string testMessage)
:base(testMessage)
{
}
}
public class ExceptionsAndExceptionHandling
{
public static void Main(string[] args)
{
try
{
//sample if you want to throw an exception
throw new CustomException("Test Message");
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
}
}
or
public class CustomException : ApplicationException
{
public override string Message => "Test message";
}
public class ExceptionsAndExceptionHandling
{
public static void Main(string[] args)
{
try
{
//sample if you want to throw an exception
throw new CustomException();
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
}
}