JUPALLI - CHINMAYANANDHA Batch No 191
JUPALLI - CHINMAYANANDHA Batch No 191
EXCEPTION ERROR
2. STOPITERATION
*StopIteration is a statement that will be useful when you want to stop the
iteration at state to prevent the iteration
from going over and over.
3. SYSTEM EXIT
4. STANDARDERROR
*The standard error of the mean is a way to measure how spread out values are
in a dataset.
It is calculated as: Standard error of the mean = s / √n. where: s: sample
standard deviation.
5. ARITHMETIC ERROR
6. OVERFLOW ERROR
*In general, a data type overflow error is when the data type used to store
data was not large enough to hold the data. Furthermore,
some data types can only store numbers up to a certain size. An overflow error
will be produced, for example, if a data type is a single byte
and the data to be stored is greater than 256.
9. ASSERTION ERROR
* EOFError is short for "End-of-Line Error." This error occurs when Python has
reached the end of user input without receiving any input.
The reason that EOFError occurs is that Python attempts to print out your input
in variable string when no data is given.
* This error generally occurs when a class cannot be imported due to one of
the following reasons: The imported class is in a circular dependency.
The imported class is unavailable or was not created. The imported class name is
misspelled.
* The LookupError exception in Python forms the base class for all exceptions
that are raised when an index or a key is not found for a sequence or
dictionary respectively. You can use LookupError exception class to handle both
IndexError and KeyError exception classes.
16. KEYERROR
* KeyError in Python is raised when you attempt to access a key that is not in
a dictionary. The mapping logic is a
data structure that maps one set of data to significant others. Hence, it is an
error, which is raised when the mapping is accessed and not found.
17. NAMEERROR
* In Python, the NameError occurs when you try to use a variable, function, or
module that doesn't exist or wasn't used in a valid way.
Some of the common mistakes that cause this error are: Using a variable or
function name that is yet to be defined.
18.UNBOUNDLOCALERROR
* An UnboundLocalError can occur due to two reasons in Python, one is when you
are trying
to access the value of a variable before it is assigned, and the second is when
Python fails to differentiate between global and local variables.
19.ENVIRONMENTERROR
* EnvironmentError is the base class for errors that come from outside of
Python (the operating system, file system, etc.).
It is the parent class for IOError and OSError exceptions.
20.IOERROR
21.OSERROR
22.SYNTAXERROR
* Syntax error occurs when the interpreter shows invalid syntax on executing
the Python code. A syntax error occurs due to missed reserved keywords, spaces,
quotes placed improperly, indentations and incorrect usage of blocks, invalid
declarations, and if the function calls and definitions aren't done properly.
23.INDENTATIONERROR
* The indentation error can occur when the spaces or tabs are not placed
properly. There will not be an issue if the interpreter does not find
any issues with the spaces or tabs. If there is an error due to indentation, it
will come in between the execution and can be a show stopper.
24.SYSTEMERROR
* The SystemError is raised when the interpreter finds an internal error. The
associated value is a string indicating what went wrong.
The SystemExit is raised when sys. exit() function is called.
25.TYPEERROR
* Typeerror occurs when you use different data types in an operation. For
example, if you attempt to divide an integer (number) by a string,
it leads to a typeerror because an integer data type is not the same as a
string.
26.VALURERROR
27.RUNTIMEERROR
*A runtime error is a type of error that occurs during program execution. The
Python interpreter executes a script if it is syntactically correct.
28.NOTIMPLMENTEDERROR