 So let's say for example, you know, we've got our little planet running it's our program and It's just spinning along doing whatever it does, but suddenly all of a sudden it there's a crash There's a I try and divide by zero Suddenly it's on fire Everything is ruined You know even the Antarctica is on fire. I don't know how that works, but it's everything's gone to hell so What exception handling does is? make sure This does Not happen So I say all of a sudden. Oh, well, I don't want this to happen I don't want that to happen. You know for obvious reasons So what we're looking at suddenly is this idea give me a second boom What we're looking at is this idea that before I even Try and execute again if I execute it on fire What I want to do is I want to create a parallel world And here's my terrible art rendition for you. Here's my here you go I want to recreate the world for just a second here's I I Am surely proving to you guys right now that I am a Computer scientist not a programmer or not an artist if you will So what I did what I've just done is I've said Try try to run my program If it would catch fire if it would catch fire catch this and So what will happen is we can think of it almost as if a parallel universe has just been built if for example I Attempt this and no fire happens All right, cool. Well what Java actually says is go ahead and execute this Execute if okay That's exactly what we're saying is First kind of test it out in this Parallel universe for me if it ran fine there. Oh, okay. All right. I feel safe about it now I've seen someone else do it. I I'm gonna do it now however, if I end up Going to hell Catch me and pull me back and go. Whoa. Hey, hold on for a second instead of executing this Here's some code Here's some code to execute instead So how do we build this out? Of course, you know, we've got a bunch of we don't use fire in Programming there's enough of the steam coming out of our ears for that But what we do is we use sort of this new structure. We start off with The trikey word the trikey word Basically does that it says create this parallel universe And then do this code if that code works perfectly fine Excellent go ahead and run it again, and it will be a okay. However, if I Have an error if I break What I'm needing to expect is some type of it exception type Some type of exception and I'm just gonna call e and again, this is code that I only want to happen when Otherwise my program would crash. I'm basically trying to stop it from crashing or at least Crash with a little bit more grace if you will Think about someone like Minecraft Minecraft built in Java even take a look at this error message for a second internal exception Java IO Dot IO exception received a string length longer than the maximum allowed it something a little too big now Whatever this is for you know, it's probably for someone trying to stuff a packet For our networking guys out there, but instead of Minecraft just shutting down and you know me not knowing why my program, you know crashed especially if I'm just an 8 year Old kid, you know minecraft sucks all of a sudden That's what they all sound like all of you all you 8 year olds You know instead of that we say there's an error message We display this error message because now when they go It sucks now it's crashing all the time it crashed back in alpha. It's crashing all the time But now I can at least throw this error message out on the internet and go what what does you know Received string length longer than maximum allowed Mean especially in contacts of Minecraft. So this is where we would want to Design out these conditional statements