Exceptions


An exception is an interuption in the execution of the code
An error is an interruption in the execution of the code which is displayed as an exception.
Syntax errors are a type of exception that occurs when you use incorrect syntax.


Throwing an exception is when you send a message that something has gone wrong in the execution of the code.
This can be thrown by Javascript or manually by the developer using the "throw" keyword.

throw "string"; 
throw true;


© 2020 Better Solutions Limited. All Rights Reserved. © 2020 Better Solutions Limited TopNext