Types of Attribute Error:
1. Accessing
Non-Existent Attributes:
Attempt to access an
attribute that doesn’t exist for the object’s type can lead to attribute error.
2. Incorrect Object
type:
Accessing the methods
that are not belongs to the respected type.
3. Misspelled
Attributes:
When we access the
method that is not correctly spelt.
This can be overcome
by giving correct spelling.
Attribute Error in python occurs when there is an attempt to access or modify an attribute that an object does not possess or when there’s a mismatch in attribute usage.
Types of Attribute Error:
1. Accessing
Non-Existent Attributes:
Attempt to access an attribute that doesn’t exist for the object’s type can lead to attribute error.
2. Incorrect Object
type:
Accessing the methods
that are not belongs to the respected type.
3. Misspelled
Attributes:
When we access the
method that is not correctly spelt.
This can be overcome by giving correct spelling.
Comments
Post a Comment